智慧保安后台管理项目备份
Administrator
2021-11-09 4027720673c690cb750bd4cd25fb68574f7f47f5
派遣单位查询修改
3 files modified
19 ■■■■■ changed files
src/main/java/org/springblade/modules/dispatcher/mapper/DispatcherUnitMapper.xml 11 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/information/controller/InformationsController.java 2 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml 6 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/dispatcher/mapper/DispatcherUnitMapper.xml
@@ -5,8 +5,7 @@
    <!--派遣公司分页信息-->
    <select id="selectDispatcherUnitPage" resultType="org.springblade.modules.dispatcher.vo.DispatcherUnitVO">
        select
        distinct
        sdu.*,bt.dept_name tenantName,bu.real_name realName
        sdu.*,bt.dept_name deptName,sj.dept_name jurisdictionName
        from
        sys_dispatcher_unit sdu
        LEFT JOIN
@@ -14,13 +13,9 @@
        ON
        sdu.dept_id = bt.id
        left join
        sys_dispatcher sd
        sys_jurisdiction sj
        on
        sdu.id = sd.dispatcher_unit_id
        left join
        blade_user bu
        on
        sd.user_ids = bu.id
        sj.id = sdu.jurisdiction
        WHERE
        1=1
        <if test="dispatcherUnit.tenantName!=null and  dispatcherUnit.tenantName!=''">
src/main/java/org/springblade/modules/information/controller/InformationsController.java
@@ -240,4 +240,6 @@
        }
        return R.data(lists);
    }
}
src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
@@ -51,11 +51,11 @@
        on
        sj.id = i.jurisdiction
        LEFT JOIN ( SELECT COUNT( * ) AS znum, dept_id FROM blade_user WHERE role_id = '1412226235153731586' AND
        status=1 GROUP BY dept_id ) A ON A.dept_id = i.departmentid
        status=1 and is_deleted = 0 GROUP BY dept_id ) A ON A.dept_id = i.departmentid
        LEFT JOIN ( SELECT COUNT( * ) AS cnum, dept_id FROM blade_user WHERE role_id = '1412226235153731586' AND
        status=1 AND hold=1 GROUP BY dept_id ) B ON B.dept_id = i.departmentid
        status=1 AND hold=1 and is_deleted = 0 GROUP BY dept_id ) B ON B.dept_id = i.departmentid
        LEFT JOIN ( SELECT COUNT( * ) AS pnum, dept_id FROM blade_user WHERE role_id = '1412226235153731586' AND
        status=1 AND dispatch=0 GROUP BY dept_id ) C ON C.dept_id = i.departmentid
        status=1 AND dispatch=0 and is_deleted = 0 GROUP BY dept_id ) C ON C.dept_id = i.departmentid
        where 1=1
        <if test="information.enterprisename!=null and information.enterprisename!=''">
            and i.enterpriseName like concat(concat('%', #{information.enterprisename}),'%')