update:操作日志查询、新增接口
This commit is contained in:
@@ -2,4 +2,25 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.adc.da.slrs.sysLog.dao.SysLogDao">
|
||||
|
||||
<select id="queryAllLog" parameterType="com.adc.da.slrs.sysLog.vo.SysLogReqDTO" resultType="com.adc.da.slrs.sysLog.entity.SysLog">
|
||||
select ts_user.account,ts_institution.name dept,sys_log.oper_time,sys_log.oper,sys_log.oper_location from sys_log
|
||||
left join ts_user on sys_log.user_id = ts_user.usid
|
||||
left join ts_institution on ts_user.institution_id = ts_institution.id
|
||||
WHERE 1=1
|
||||
<if test="sysLogReqDTO.account != null and sysLogReqDTO.account != ''">
|
||||
and ts_user.account = #{sysLogReqDTO.account}
|
||||
</if>
|
||||
<if test="sysLogReqDTO.sTime != null and sysLogReqDTO.sTime != ''">
|
||||
and sys_log.oper_time >= #{sysLogReqDTO.sTime}
|
||||
</if>
|
||||
<if test="sysLogReqDTO.eTime != null and sysLogReqDTO.eTime != ''">
|
||||
and sys_log.oper_time <= #{sysLogReqDTO.eTime}
|
||||
</if>
|
||||
<if test="sysLogReqDTO.oper != null and sysLogReqDTO.oper != ''">
|
||||
and sys_log.oper = #{sysLogReqDTO.oper}
|
||||
</if>
|
||||
<if test="sysLogReqDTO.content != null and sysLogReqDTO.content != ''">
|
||||
and sys_log.oper_location like concat(concat('%',#{sysLogReqDTO.content}),'%')
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user