智慧保安后台管理-验收版本
Administrator
2021-09-15 a841e7d34df4edf9955da8e1db09ed8de079ad95
src/main/java/org/springblade/modules/dispatcher/mapper/DispatcherMapper.xml
@@ -16,7 +16,10 @@
    <!--派遣记录分页数据-->
    <select id="selectDispatcherPage" resultType="org.springblade.modules.dispatcher.vo.DispatcherVO">
        select
        sd.*,bu.real_name securityName,sdu.name dispatcherCompany,bu.cardid idCardNo
        sd.*,
        bu.real_name securityName,sdu.name dispatcherCompany,bu.cardid idCardNo,bu.phone securityPhone,
        bd.dept_name deptName,
        sdu.linkman,sdu.phone
        from
        sys_dispatcher sd
        left join
@@ -27,6 +30,10 @@
        blade_user bu
        on
        bu.id = sd.user_ids
        left join
        blade_dept bd
        on
        bd.id = bu.dept_id
        where 1=1
        <if test="dispatcher.dispatcherUnitId!=null">
            and sd.dispatcher_unit_id = #{dispatcher.dispatcherUnitId}