|
@@ -18,17 +18,17 @@
|
|
|
</if>
|
|
|
order by ui.create_time desc
|
|
|
</select>
|
|
|
- <select id="getByAgentId" resultType="java.lang.Long" parameterType="com.fdkankan.agent.request.CameraParam">
|
|
|
+ <select id="getByAgentId" resultType="java.lang.Long" >
|
|
|
select ui.camera_id from t_user_increment ui left join t_camera_detail d on ui.camera_id = d.camera_id
|
|
|
where ui.rec_status = 'A' and d.rec_status = 'A'
|
|
|
- <if test="param.agentId != null ">
|
|
|
- and d.agent_id = #{param.agentId}
|
|
|
+ <if test="agentId != null ">
|
|
|
+ and d.agent_id = #{agentId}
|
|
|
</if>
|
|
|
- <if test="param.incrementStatus != null ">
|
|
|
- and ui.is_expired = #{param.incrementStatus}
|
|
|
+ <if test="incrementStatus != null ">
|
|
|
+ and ui.is_expired = #{incrementStatus}
|
|
|
</if>
|
|
|
- <if test="param.incrementTypeId != null ">
|
|
|
- and ui.increment_type_id = #{param.incrementTypeId}
|
|
|
+ <if test="incrementTypeId != null ">
|
|
|
+ and ui.increment_type_id = #{incrementTypeId}
|
|
|
</if>
|
|
|
</select>
|
|
|
</mapper>
|