|
@@ -32,7 +32,7 @@
|
|
left join t_camera c on s.camera_id = c.id
|
|
left join t_camera c on s.camera_id = c.id
|
|
left join t_camera_detail d on c.id = d.camera_id
|
|
left join t_camera_detail d on c.id = d.camera_id
|
|
left join t_company co on d.company_id = co.id
|
|
left join t_company co on d.company_id = co.id
|
|
- where s.rec_status = 'A' and d.agent_id = #{param.agentId}
|
|
|
|
|
|
+ where s.rec_status = 'A' and c.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>
|