|
@@ -18,7 +18,7 @@
|
|
|
LEFT JOIN t_camera c on s.camera_id = c.id
|
|
|
LEFT JOIN t_user u on s.user_id = u.id
|
|
|
LEFT JOIN t_company co on u.company_id = co.id
|
|
|
- WHERE s.rec_status = 'A' and s.scene_status = -2 and s.pay_status = 1 and s.map_show = 1 and s.num is not null and gps.gps_source = 2
|
|
|
+ WHERE s.rec_status = 'A' and gps.rec_status = 'A' and s.scene_status = -2 and s.pay_status = 1 and s.map_show = 1 and s.num is not null and gps.gps_source = 2
|
|
|
<if test="param.searchKey != null and param.searchKey!='' ">
|
|
|
and (s.title like concat ('%',#{param.searchKey},'%') or s.laser_title like concat ('%',#{param.searchKey},'%') or s.num = #{param.searchKey})
|
|
|
</if>
|