智慧保安后台管理-外网项目备份
Administrator
2021-12-15 d47e5818d63bef779ff8c4cef79382ae63e99fb4
src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -804,4 +804,24 @@
          AND equipment_code IS NOT NULL
    </select>
    <!--查詢用戶派遣記錄信息-->
    <select id="getUserDispatcherInfo" resultType="org.springblade.modules.dispatcher.vo.DispatcherVO">
        select
        sdu.name dispatcherCompany,
        dispatcherTime dispatchertime,
        sd.end_time endTime
        from blade_user bu
        left join
        sys_dispatcher sd
        on
        sd.user_ids = bu.id
        left join
        sys_dispatcher_unit sdu
        on
        sdu.id = sd.dispatcher_unit_id
        where 1=1
        and sd.status = 0
        and bu.dispatch = 0
        and bu.id = #{id}
    </select>
</mapper>