|
@ -1011,12 +1011,15 @@ |
|
|
FROM staff_patrol_record |
|
|
FROM staff_patrol_record |
|
|
WHERE |
|
|
WHERE |
|
|
1=1 |
|
|
1=1 |
|
|
<if test="patrolId != null and patrolId != ''"> |
|
|
<if test="patrolId != null and patrolId != ''"> |
|
|
AND ID = #{patrolId} |
|
|
AND ID = #{patrolId} |
|
|
</if> |
|
|
</if> |
|
|
and CUSTOMER_ID = #{customerId} |
|
|
and CUSTOMER_ID = #{customerId} |
|
|
AND DEL_FLAG = '0' |
|
|
AND DEL_FLAG = '0' |
|
|
LIMIT #{offset},#{pageSize} |
|
|
<if test="isPage != null and isPage"> |
|
|
|
|
|
LIMIT #{offset},#{pageSize} |
|
|
|
|
|
</if> |
|
|
|
|
|
order by created_time |
|
|
</select> |
|
|
</select> |
|
|
<select id="getPatrolDetailList" resultType="com.epmet.dto.user.result.MidPatrolDetailResult"> |
|
|
<select id="getPatrolDetailList" resultType="com.epmet.dto.user.result.MidPatrolDetailResult"> |
|
|
select |
|
|
select |
|
@ -1024,12 +1027,17 @@ |
|
|
from staff_patrol_detail |
|
|
from staff_patrol_detail |
|
|
WHERE |
|
|
WHERE |
|
|
1=1 |
|
|
1=1 |
|
|
<if test="patrolId != null and patrolId != ''"> |
|
|
<if test="patrolId != null and patrolId != ''"> |
|
|
AND staff_patrol_rec_id = #{patrolId} |
|
|
AND staff_patrol_rec_id = #{patrolId} |
|
|
</if> |
|
|
</if> |
|
|
and CUSTOMER_ID = #{customerId} |
|
|
and CUSTOMER_ID = #{customerId} |
|
|
AND DEL_FLAG = '0' |
|
|
AND DEL_FLAG = '0' |
|
|
LIMIT #{offset},#{pageSize} |
|
|
<if test="isPage != null and isPage"> |
|
|
|
|
|
LIMIT #{offset},#{pageSize} |
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
order by created_time |
|
|
|
|
|
|
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
</mapper> |
|
|
</mapper> |
|
|