智慧保安后台管理项目备份
zhongrj
2024-05-24 b5960d1968e007b91d4d33dd7cbb74f1b566f2c1
src/main/java/org/springblade/modules/dispatcher/mapper/DispatcherMapper.xml
@@ -35,6 +35,8 @@
        on
        bd.id = bu.dept_id
        where 1=1
        and bu.status =1
        and bu.is_deleted = 0
        <if test="dispatcher.dispatcherUnitId!=null">
            and sd.dispatcher_unit_id = #{dispatcher.dispatcherUnitId}
        </if>
@@ -81,4 +83,15 @@
        </if>
    </select>
    <!--查询派遣的保安员数量-->
    <select id="getDispatcherNum" resultType="java.lang.Integer">
        select
        ifnull(count(*),0)
        from
        sys_dispatcher
        where 1=1
        and status = 0
        and dispatcher_unit_id = #{dispatcher.id}
    </select>
</mapper>