| | |
| | | <if test="dispatcherUnit.city!=null"> |
| | | and sdu.city = #{dispatcherUnit.city} |
| | | </if> |
| | | <if test="dispatcherUnit.jurisdiction!=null"> |
| | | and sdu.jurisdiction = #{dispatcherUnit.jurisdiction} |
| | | <if test="dispatcherUnit.jurisdiction!=null and dispatcherUnit.jurisdiction!='' and dispatcherUnit.jurisdiction!='1372091709474910209'"> |
| | | and (sj.id = #{dispatcherUnit.jurisdiction} or sj.parent_id = #{dispatcherUnit.jurisdiction}) |
| | | </if> |
| | | <if test="dispatcherUnit.deptId!=null and dispatcherUnit.deptId!=''"> |
| | | and sdu.dept_id = #{dispatcherUnit.deptId} |
| | |
| | | or ( sdu.start_time <= #{dispatcherUnit.overTime} and sdu.start_time >= #{dispatcherUnit.beginTime}) |
| | | </if> |
| | | </if> |
| | | <if test="dispatcherUnit.isExpire==1"> |
| | | and sdu.start_time <= now() |
| | | and sdu.end_time > now() |
| | | </if> |
| | | <if test="dispatcherUnit.isExpire==2"> |
| | | and sdu.end_time <= now() |
| | | </if> |
| | | </select> |
| | | |
| | | <!--自定义树--> |