智慧保安后台管理-验收版本
tangzy
2021-12-04 ef8c725ba73fea5b88bb7f77684639ddf8e51e95
src/main/java/org/springblade/modules/information/mapper/InformationMapper.java
@@ -16,6 +16,7 @@
 */
package org.springblade.modules.information.mapper;
import com.baomidou.mybatisplus.annotation.SqlParser;
import liquibase.pro.packaged.S;
import org.apache.ibatis.annotations.Param;
import org.springblade.modules.dispatcher.vo.DispatcherVO;
@@ -23,6 +24,10 @@
import org.springblade.modules.information.vo.InformationVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.modules.information.vo.ResponseVo;
import org.springblade.modules.system.vo.UserVO;
import org.springframework.boot.autoconfigure.quartz.QuartzDataSource;
import java.util.List;
import java.util.Map;
@@ -51,6 +56,7 @@
   List<Map<Object,String>> selectInCount(String jurisdiction,String deptid);
   List<Map<String, Object>> selectCs(String jurisdiction,String deptid);
   List<Map<String, Object>> selectTo(String jurisdiction,String deptid);
   List<Map<String, Object>> seleP(String jurisdiction,String deptid);
   Map<String, String> queryYearSoil(String year,String jurisdiction,String deptid);
   Map<String, String> queryYearPz(String year,String jurisdiction,String deptid);
   Map<String, String> queryYearAn(String year,String jurisdiction,String deptid);
@@ -84,6 +90,7 @@
   List<Map<Object,Object>> selJur();
   String selJurchilder(String id);
   List<Map<Object,Object>> seleJuList(String substring);
   List<Map<Object,Object>> selectBxc(IPage page, String jurisdiction,String type);
   Map<String, String> queryYearZ(String year,String jurisdiction,String deptid);
   Map<String, String> queryYearZc(String year,String jurisdiction,String deptid);
@@ -92,4 +99,86 @@
   Map<String, String> queryYearBanan(String year,String jurisdiction,String deptid);
   Map<String, String> queryYearDe(String year,String jurisdiction,String deptid);
   void deleteDept(String ids);
   /**
    * 获取保安公司信息(本市保安公司,分公司)包含经纬度
    * @return
    */
    List<InformationVO> getSecurityUnitPositionInfo();
   /**
    * 根据辖区查询保安公司分页信息(本市保安公司,分公司)
    * @param page  分页条件
    * @param information 查询条件
    * @return
    */
   List<InformationVO> getSecurityUnitInfoPage(IPage<InformationVO> page,@Param("information") InformationVO information);
   /**
    * 根据辖区查询统计保安公司持证情况分页信息(本市保安公司,分公司)
    * @param page  分页条件
    * @param information 查询条件
    * @return
    */
   List<InformationVO> getSecurityUnitHoldInfoPage(IPage<InformationVO> page,@Param("information") InformationVO information);
   /**
    * 根据辖区查询统计保安公司(1:持证率低于50%, 2:派遣率低于50%  3:缴纳社保率低于50% 4:保险缴纳 的保安公司个数及保安公司分页信息(本市保安公司,分公司)
    * @param page  分页条件
    * @param information 查询条件
    * @return
    */
   List<InformationVO> getSecurityUnitLess50Page(IPage<InformationVO> page,
                                         @Param("type") Integer type,
                                         @Param("information") InformationVO information);
   /**
    * 根据辖区查询统计保安公司考试通过率低于50%的保安公司个数及保安公司分页信息(本市保安公司,分公司)
    * @param page  分页条件
    * @param information 查询条件
    * @return
    */
   List<InformationVO> getSecurityUnitExamLess50Page(IPage<InformationVO> page,@Param("information") InformationVO information);
   /**
    * 根据辖区查询统计当前辖区下的保安公司(本市保安公司,分公司)预警信息,包含(未持证,现实表现差,未缴纳社保,资格审查异常)
    * @param page  分页条件
    * @param information 查询条件
    * @return
    */
   @SqlParser(filter = true)
   List<InformationVO> getSubstationWarnInfoPage(IPage<InformationVO> page,@Param("information") InformationVO information);
   /**
    * 根据辖区查询统计当前辖区下的保安公司(本市保安公司,分公司))服务对象小于2家的公司数量的分页信息
    * @param page  分页条件
    * @param information 查询条件
    * @return
    */
   List<InformationVO> getSecurityUnitServerLess2Page(IPage<InformationVO> page,@Param("information") InformationVO information);
   /**
    * 统计表现差的信息
    * @return
    */
   List<ResponseVo> getSecurityPerformanceGroupCountList();
   /**
    * 统计资格审查异常信息
    * @return
    */
   List<ResponseVo> getSecurityExaminationGroupCountList();
   /**
    * 考试通过率低于50%
    * @return
    */
   List<ResponseVo> getSecurityExamPassingGroupCountList();
   /**
    *  查询 1 持证率低于50%, 2 社保缴纳率低于50%, 3 派遣率低于50%
    * @param type 1 持证率低于50%, 2 社保缴纳率低于50%, 3 派遣率低于50%
    * @return
    */
   List<ResponseVo> getSecurityHoldAndSoidAndDispatchGroupCountList(Integer type);
}