|
@@ -6,10 +6,11 @@
|
|
select cil.*,c.sn_code,u.user_name as operationUserName,ui.increment_type_id ,uit.valid_time_type
|
|
select cil.*,c.sn_code,u.user_name as operationUserName,ui.increment_type_id ,uit.valid_time_type
|
|
from t_camera_increment_log cil
|
|
from t_camera_increment_log cil
|
|
left join t_camera c on cil.camera_id = c.id
|
|
left join t_camera c on cil.camera_id = c.id
|
|
|
|
+ left join t_camera_detail d on c.id = d.camera_id
|
|
left join t_user_increment ui on cil.increment_id = ui.id
|
|
left join t_user_increment ui on cil.increment_id = ui.id
|
|
left join t_user u on cil.operation_user = u.id
|
|
left join t_user u on cil.operation_user = u.id
|
|
left join t_increment_type uit on ui.increment_type_id = uit.id
|
|
left join t_increment_type uit on ui.increment_type_id = uit.id
|
|
- where cil.rec_status = 'A'
|
|
|
|
|
|
+ where cil.rec_status = 'A' and d.agent_id = #{param.agentId}
|
|
<if test="param.snCode != null and param.snCode !=''">
|
|
<if test="param.snCode != null and param.snCode !=''">
|
|
and c.sn_code like concat ('%',#{param.snCode},'%')
|
|
and c.sn_code like concat ('%',#{param.snCode},'%')
|
|
</if>
|
|
</if>
|