智慧保安后台管理项目备份
zengh
2021-08-15 55dfe05f0a6120d686b9977b24149b2c468b7d5f
统计审查异常
5 files modified
47 ■■■■ changed files
src/main/java/org/springblade/modules/information/controller/InformationController.java 29 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/information/mapper/InformationMapper.java 1 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml 11 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/information/service/IInformationService.java 1 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/information/service/impl/InformationServiceImpl.java 5 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/information/controller/InformationController.java
@@ -236,8 +236,7 @@
                map.put("cz", cznumber);
                map.put("wcz", wcznumber);
                lists.add(map);
            }
            else {
            } else {
                String cz = objectStringMap.get("cz").toString();
                cznumber = Integer.valueOf(cz);
                String wcz = objectStringMap.get("wcz").toString();
@@ -267,7 +266,8 @@
    }
    /**  未缴社保数量
    /**
     * 未缴社保数量
     * 通过辖区查询机构id,然后通过机构id查询当前机构交社保的人数(numj单位已交社保数量;numz单位人员总数)
     */
    @PostMapping("/selectCs")
@@ -321,6 +321,7 @@
    /**
     * 统计这个月和上个月交社保的人数,以及金额
     *
     * @return
     */
    @PostMapping("/selectTo")
@@ -361,6 +362,7 @@
    /**
     * 查询本年所有月份交社保人数
     *
     * @return
     */
    @GetMapping("/queryYearSoil")
@@ -374,6 +376,7 @@
    /**
     * 查询本年所有月份社保金额(公司经济运营趋势)
     *
     * @return
     */
    @GetMapping("/queryYearAn")
@@ -388,6 +391,7 @@
    /**
     * 公司运营智能统计
     *
     * @return
     */
    @GetMapping("/queryCounts")
@@ -504,9 +508,9 @@
    }
    /**
     * 查询本年公司运营智能统计
     *
     * @return
     */
    @GetMapping("/queryYearG")
@@ -547,6 +551,7 @@
    /**
     * 查询本年所有月份的客户数量
     *
     * @return
     */
    @GetMapping("/queryYearKh")
@@ -561,6 +566,7 @@
    /**
     * 查询本年所有月份的保安派遣数量
     *
     * @return
     */
    @GetMapping("/queryYearBanan")
@@ -571,6 +577,7 @@
        map = (HashMap<String, String>) sortMapBykeyAsc(map) ;//key升序
        return R.data(map);
    }
    //升序
    public  static Map<String, String> sortMapBykeyAsc(Map<String, String> oriMap) {
        Map<String, String> sortedMap = new LinkedHashMap<String, String>();
@@ -607,6 +614,7 @@
    /**
     * 统计保安员资格异常的数量
     *
     * @param jurisdiction
     * @param deptid
     * @param type 1:当天  2:当月 3:全部
@@ -628,9 +636,19 @@
        return R.data(lists);
    }
    /**
     * 统计用户资格异常的数量
     * @return
     */
    @PostMapping("/selectExtypeUser")
    public int selectExtypeUser() {
        return informationService.selectExtypeUser();
    }
    /**
     * 统计保安员表现差的数量
     *
     * @param jurisdiction
     * @param deptid
     * @param type 1:当天  2:当月 3:全部
@@ -651,8 +669,6 @@
        lists.add(map);
        return R.data(lists);
    }
    /**
@@ -704,7 +720,6 @@
        }
        return R.data(lists);
    }
    /**
src/main/java/org/springblade/modules/information/mapper/InformationMapper.java
@@ -59,6 +59,7 @@
    List<Map<Object,Object>> queryCountKh(String jurisdiction,String deptid);
    List<Map<Object,Object>> queryCountPq(String jurisdiction,String deptid);
    List<Map<Object,Object>> selectJur();
    int selectExtypeUser();
    List<Map<Object,Object>> selectExtype(String jurisdiction,String deptid,String type);
    List<Map<Object,Object>> selectBx(String jurisdiction,String deptid,String type);
    List<Map<Object,Object>> seCountI(String jurisdiction,String deptid);
src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
@@ -775,6 +775,13 @@
        WHERE id!=1123598813738675201
    </select>
    <select id="selectExtypeUser" resultType="java.lang.Integer">
        SELECT
            COUNT( CASE WHEN (examination_mx is null or examination_mx = "") THEN 1 END ) as sum
        FROM
            blade_user
    </select>
    <!--派遣保安人數量-->
    <select id="selectPcount" resultType="java.util.HashMap">
        SELECT COUNT
@@ -818,7 +825,6 @@
    </delete>
    <select id="selectLi" resultType="java.util.HashMap">
        SELECT
            IFNULL( A.num, 0 ) AS num,
@@ -832,7 +838,8 @@
            d.dept_name AS deptname,
            j.dept_name AS jurname
        FROM
            ( SELECT COUNT( * ) AS num, dept_id, jurisdiction FROM blade_user WHERE role_id = '1412226235153731586' GROUP BY dept_id, jurisdiction ) A
        ( SELECT COUNT( * ) AS num, dept_id, jurisdiction FROM blade_user WHERE role_id = '1412226235153731586' GROUP BY
        dept_id, jurisdiction ) A
                LEFT JOIN (
                SELECT
                    COUNT( * ) AS cznum,
src/main/java/org/springblade/modules/information/service/IInformationService.java
@@ -63,6 +63,7 @@
    Map<String, String> queryYearBanan(String year,String jurisdiction,String deptid);
    List<Map<Object,Object>> selectExtype(String jurisdiction,String deptid,String type);
    List<Map<Object,Object>> selectJur();
    int selectExtypeUser();
    List<Map<Object,Object>> selectBx(String jurisdiction,String deptid,String type);
    Map<String, String> queryYearDe(String year,String jurisdiction,String deptid);
    Map selectPcount(String jurisdiction,String deptid);
src/main/java/org/springblade/modules/information/service/impl/InformationServiceImpl.java
@@ -151,6 +151,11 @@
    }
    @Override
    public int selectExtypeUser() {
        return baseMapper.selectExtypeUser();
    }
    @Override
    public List<Map<Object, Object>> selectBx(String jurisdiction, String deptid,String type) {
        return baseMapper.selectBx(jurisdiction, deptid,type);
    }