| | |
| | | <?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.OperateMapper"> |
| | | <select id="selectCount" resultType="java.lang.Integer" parameterType="java.lang.String"> |
| | | <select id="selectCount" resultType="java.lang.Integer"> |
| | | select count(*) from lf.sys_operate a inner join lf.sys_user b on a.userid = b.id |
| | | <where> |
| | | 1 = 1 |
| | | <if test="uname != null"> |
| | | and b.uname like #{uname} |
| | | and upper(b.uname) like #{uname} |
| | | </if> |
| | | <if test="type != null"> |
| | | and a.type = #{type} |
| | |
| | | <where> |
| | | 1 = 1 |
| | | <if test="uname != null"> |
| | | and b.uname like #{uname} |
| | | and upper(b.uname) like #{uname} |
| | | </if> |
| | | <if test="type != null"> |
| | | and a.type = #{type} |
| | |
| | | and a.optime <= #{end} |
| | | </if> |
| | | </where> |
| | | order by a.id |
| | | order by a.id desc |
| | | limit #{limit} offset #{offset} |
| | | </select> |
| | | |
| | | |
| | | <select id="selectOperateAll" resultType="com.lf.server.entity.sys.OperateEntity"> |
| | | select * from lf.sys_operate order by id; |
| | | select * from lf.sys_operate order by id desc |
| | | </select> |
| | | |
| | | <select id="selectOperate" resultType="com.lf.server.entity.sys.OperateEntity"> |
| | |
| | | </delete> |
| | | |
| | | <update id="updateOperate"> |
| | | update lf.sys_operate set modular1=#{modular1},modular2=#{modular2},url=#{url},ip=#{ip},exec=#{exec},clazz=#{clazz},type=#{type},userid=#{userid},optime=now(),bak=#{bak} where id=#{id} |
| | | update lf.sys_operate set modular1=#{modular1},modular2=#{modular2},url=#{url},ip=#{ip},exec=#{exec},clazz=#{clazz},type=#{type},userid=#{userid},optime=now(),bak=#{bak} where id=#{id} |
| | | </update> |
| | | |
| | | <select id="operateCount" resultType="com.lf.server.entity.sys.OperateEntity"> |
| | | select modular2, count(*) from lf.sys_operate group by modular2 ; |
| | | select modular2,count(*) from lf.sys_operate group by modular2 |
| | | </select> |
| | | </mapper> |