智慧保安后台管理-外网
Administrator
2021-12-10 00754b2fb8e71be738e6c312e11d62e64a4e82c3
src/main/java/org/springblade/modules/dispatcher/mapper/DispatcherMapper.xml
@@ -31,6 +31,8 @@
        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>
@@ -41,7 +43,6 @@
            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!=''">
@@ -105,4 +106,8 @@
        and sd.status = 0
    </select>
    <update id="updateEndtime">
        update sys_dispatcher set end_time =#{endTime} where dispatcher_unit_id =#{disId}
    </update>
</mapper>