| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.lf.server.mapper.sys.ReportMapper"> |
| | | <mapper namespace="com.moon.server.mapper.sys.ReportMapper"> |
| | | <select id="selectCount" resultType="java.lang.Integer"> |
| | | select count(*) from lf.sys_report |
| | | <where> |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectByPage" resultType="com.lf.server.entity.sys.ReportEntity"> |
| | | <select id="selectByPage" resultType="com.moon.server.entity.sys.ReportEntity"> |
| | | select a.*,fn_uname(a.create_user) createName,fn_uname(a.update_user) updateName from lf.sys_report a |
| | | <where> |
| | | <if test="name != null"> |
| | |
| | | limit #{limit} offset #{offset} |
| | | </select> |
| | | |
| | | <select id="selectAll" resultType="com.lf.server.entity.sys.ReportEntity"> |
| | | <select id="selectAll" resultType="com.moon.server.entity.sys.ReportEntity"> |
| | | select * from lf.sys_report order by id desc; |
| | | </select> |
| | | |
| | | <select id="selectById" resultType="com.lf.server.entity.sys.ReportEntity"> |
| | | <select id="selectById" resultType="com.moon.server.entity.sys.ReportEntity"> |
| | | select * from lf.sys_report where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insert" parameterType="com.lf.server.entity.sys.ReportEntity"> |
| | | <insert id="insert" parameterType="com.moon.server.entity.sys.ReportEntity"> |
| | | insert into lf.sys_report |
| | | (name,type,fname,guid,code,create_user,create_time,bak) |
| | | values |
| | |
| | | </update> |
| | | |
| | | <!-- 数据量统计 --> |
| | | <select id="countSizes" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | <select id="countSizes" resultType="com.moon.server.entity.ctrl.CountEntity"> |
| | | select fn_get_fullname(depcode, 1) "m1", cast(sum(sizes) as decimal(18, 3)) "sizes" |
| | | from lf.sys_meta |
| | | group by depcode |
| | |
| | | </select> |
| | | |
| | | <!-- 服务调用量统计 --> |
| | | <select id="countServices" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | <select id="countServices" resultType="com.moon.server.entity.ctrl.CountEntity"> |
| | | select name "m1", count(*) "count" |
| | | from lf.sys_serve_log |
| | | group by name |
| | |
| | | </select> |
| | | |
| | | <!-- 用户流量统计 --> |
| | | <select id="countOperates" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | <select id="countOperates" resultType="com.moon.server.entity.ctrl.CountEntity"> |
| | | select modular1 "m1", modular2 "m2", count(*) "count" |
| | | from lf.sys_operate |
| | | group by modular1,modular2 |