zengh
2022-07-12 7c86454ff569dc54bbe7e34988750a1df762a2c3
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>