|
|
@@ -0,0 +1,31 @@
|
|
|
+<?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.fdkankan.agent.mapper.ICameraIncrementLogMapper">
|
|
|
+
|
|
|
+ <select id="pageList" resultType="com.fdkankan.agent.response.CameraIncrementVo">
|
|
|
+ select cil.*,c.sn_code,u.user_name as operationUserName from t_camera_increment_log cil
|
|
|
+ left join t_camera c on cil.camera_id = c.id
|
|
|
+ left join t_user_increment ui on cil.increment_id = ui.id
|
|
|
+ left join t_user u on cil.operation_user = u.id
|
|
|
+ where cil.rec_status = 'A'
|
|
|
+ <if test="param.snCode != null and param.snCode !=''">
|
|
|
+ and c.sn_code like concat ('%',#{param.snCode},'%')
|
|
|
+ </if>
|
|
|
+ <if test="param.operationType">
|
|
|
+ and cil.operation_type = #{param.operationType}
|
|
|
+ </if>
|
|
|
+ <if test="param.incrementType">
|
|
|
+ and ui.increment_type_id = #{param.incrementType}
|
|
|
+ </if>
|
|
|
+ <if test="param.operationUserName != null and param.operationUserName !=''">
|
|
|
+ and u.user_name like concat ('%',#{param.operationUserName},'%')
|
|
|
+ </if>
|
|
|
+ <if test="param.operationUserName != null and param.operationUserName !=''">
|
|
|
+ and u.user_name like concat ('%',#{param.operationUserName},'%')
|
|
|
+ </if>
|
|
|
+ <if test="param.startTime!= null and param.startTime != ''">
|
|
|
+ and cil.create_time BETWEEN #{param.startTime} and #{param.endTime}
|
|
|
+ </if>
|
|
|
+ order by cil.create_time desc
|
|
|
+ </select>
|
|
|
+</mapper>
|