| | |
| | | on |
| | | sj.id = sdu.jurisdiction |
| | | where 1=1 |
| | | and bu.status =1 |
| | | and bu.is_deleted = 0 |
| | | <if test="dispatcher.jurisdiction!=null and dispatcher.jurisdiction!='' and dispatcher.jurisdiction!='1372091709474910209'"> |
| | | and (sj.id = #{dispatcher.jurisdiction} or sj.parent_id = #{dispatcher.jurisdiction}) |
| | | </if> |
| | |
| | | and sd.dept_id = #{dispatcher.deptId} |
| | | </if> |
| | | <if test="dispatcher.dispatch!=null and dispatcher.dispatch!=''"> |
| | | and bu.dispatch = #{dispatcher.dispatch} |
| | | and sd.status = #{dispatcher.dispatch} |
| | | </if> |
| | | <if test="dispatcher.userIds!=null and dispatcher.userIds!=''"> |
| | |
| | | and sd.status = 0 |
| | | </select> |
| | | |
| | | <update id="updateEndtime"> |
| | | update sys_dispatcher set end_time =#{endTime} where dispatcher_unit_id =#{disId} |
| | | </update> |
| | | |
| | | </mapper> |