| | |
| | | left join ard_app_patroluser as users on ard_app_patrolplan.id = users.patrolplan_id |
| | | left join sys_user on ard_app_patrolplan.user_id = sys_user.user_id |
| | | <where> |
| | | ard_app_patrolplan.user_id = #{userId} |
| | | ard_app_patrolplan.user_id = #{userId} and del_name is null and del_time is null |
| | | <if test="cycle != null and cycle != ''"> and cycle = #{cycle}</if> |
| | | <if test="planName != null and planName != ''"> and plan_name like '%'||#{planName}||'%'</if> |
| | | <if test="patroBeginTime != null and patroBeginTime != ''"> and patro_begin_time >= #{patroBeginTime}</if> |