@ -1029,9 +1029,8 @@
LEFT JOIN staff_patrol_detail d ON m.ID = d.STAFF_PATROL_REC_ID
WHERE
1 =1
<if test="patrolId != null and patrolId != ''">
AND ID = #{patrolId}
AND m.ID = #{patrolId}
</if>
and m.CUSTOMER_ID = #{customerId}
AND m.DEL_FLAG = '0'