|
@@ -4,11 +4,12 @@
|
|
|
|
|
|
<select id="pageList" resultType="com.fdkankan.agent.response.CameraDetailVo">
|
|
<select id="pageList" resultType="com.fdkankan.agent.response.CameraDetailVo">
|
|
select c.id ,c.sn_code,c.activated_time ,d.create_time as outTime ,d.type,d.own as outType ,u.user_name, c.wifi_name,
|
|
select c.id ,c.sn_code,c.activated_time ,d.create_time as outTime ,d.type,d.own as outType ,u.user_name, c.wifi_name,
|
|
- d.order_sn,ui.increment_type_id,ui.is_expired as incrementStatus
|
|
|
|
|
|
+ d.order_sn,ui.increment_type_id,ui.is_expired as incrementStatus ,uit.valid_time_type
|
|
from t_camera c
|
|
from t_camera c
|
|
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_user u on d.user_id = u.id
|
|
left join t_user u on d.user_id = u.id
|
|
left join t_user_increment ui on d.camera_id = ui.camera_id
|
|
left join t_user_increment ui on d.camera_id = ui.camera_id
|
|
|
|
+ left join t_increment_type uit on ui.increment_type_id = uit.id
|
|
where c.rec_status = 'A' and d.agent_id = #{param.agentId}
|
|
where c.rec_status = 'A' and d.agent_id = #{param.agentId}
|
|
<if test="param.userId !=null ">
|
|
<if test="param.userId !=null ">
|
|
and d.user_id = #{param.userId}
|
|
and d.user_id = #{param.userId}
|