From b5960d1968e007b91d4d33dd7cbb74f1b566f2c1 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Fri, 24 May 2024 10:20:01 +0800
Subject: [PATCH] 到期时间修改

---
 src/main/java/org/springblade/modules/information/mapper/InformationMapper.java |  286 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 279 insertions(+), 7 deletions(-)

diff --git a/src/main/java/org/springblade/modules/information/mapper/InformationMapper.java b/src/main/java/org/springblade/modules/information/mapper/InformationMapper.java
index c59468f..70dc3e8 100644
--- a/src/main/java/org/springblade/modules/information/mapper/InformationMapper.java
+++ b/src/main/java/org/springblade/modules/information/mapper/InformationMapper.java
@@ -16,11 +16,20 @@
  */
 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;
 import org.springblade.modules.information.entity.Information;
+import org.springblade.modules.information.excel.ExportInformationExcel;
+import org.springblade.modules.information.excel.ExportInformationSecurityStatistics;
+import org.springblade.modules.information.vo.InformationStatisticsVO;
 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.entity.Dept;
+
 import java.util.List;
 import java.util.Map;
 
@@ -39,25 +48,288 @@
 	 * @param information
 	 * @return
 	 */
-	List<Information> selectInformationPage(IPage page,Information information);
+	List<InformationVO> selectInformationPage(IPage page,InformationVO information);
 	void deleteIn(String creditcode);
 	void deleteSh(String creditcode);
 	void deleteMe(String creditcode);
 	Map selectCount(String departmentid);
+	Map selectPcount(String jurisdiction,String deptid);
+	Map selectWPcount(String jurisdiction,String deptid);
 	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);
 	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);
-	List<Map<Object,Integer>> queryCountB(String jurisdiction,String deptid);
-	List<Map<Object,Integer>> queryCountZc(String jurisdiction,String deptid);
-	List<Map<Object,Integer>> queryCountCz(String jurisdiction,String deptid);
-	List<Map<Object,Integer>> queryCountSb(String jurisdiction,String deptid);
-	List<Map<Object,Integer>> queryCountKh(String jurisdiction,String deptid);
-	List<Map<Object,Integer>> queryCountPq(String jurisdiction,String deptid);
+	List<Map<Object,Object>> queryCountB(String jurisdiction,String deptid);
+
+	/**
+	 * 保安员统计查询
+	 * @param page
+	 * @param jurisdiction
+	 * @param deptid
+	 * @param stats
+	 * @param startTime
+	 * @param endTime
+	 * @return
+	 */
+	List<InformationStatisticsVO> selectLi(IPage page, String jurisdiction, String deptid,String stats,String startTime,String endTime);
+
+	List<Map<Object,Object>> queryCountZc(String jurisdiction,String deptid);
+	List<Map<Object,Object>> queryCountCz(String jurisdiction,String deptid);
+	List<Map<Object,Object>> queryCountSb(String jurisdiction,String deptid);
+	List<Map<Object,Object>> queryCountKh(String jurisdiction,String deptid);
+	List<Map<Object,Object>> queryCountPq(String jurisdiction,String deptid);
+	List<Map<String, Object>> seleP(String jurisdiction,String deptid);
+	List<InformationStatisticsVO> selectYw(IPage page, String jurisdiction, String deptid, String stats, String startTime, String endTime);
+	List selectUIn(IPage page,String deptid,String name,String hold,String photo,String examinationtype,String dispatch,String soil);
+	List<Map<Object,Object>> selectJur();
+	int selectExtypeUser();
+	List<Map<Object,Object>> selectExtype(String jurisdiction,String deptid,String type);
+	List<Map<Object,Object>> selectCf(String jurisdiction);
+	List<Map<Object,Object>> selectCl(String jurisdiction);
+	List<Map<Object,Object>> selectBx(String jurisdiction,String deptid,String type);
+	List<Map<Object,Object>> selectBxs(String jurisdiction);
+	List<Map<Object,Object>> seCountI(String jurisdiction,String deptid);
+	List<Map<Object,Object>> selectAge(String jurisdiction,String deptid);
+	String seCountUm(String jurisdiction,String deptid);
+	String seCountUg(String jurisdiction,String deptid);
+	List<Map<Object,Object>> selectIn(String jurisdiction);
+	List selectTb(IPage page, String jurisdiction,String enterpriseName);
+	List selectJj(IPage page, String jurisdiction,String enterpriseName);
+	List selectDis(IPage page,String jurisdiction,String deptid,String fid);
+	List<Map<Object,Object>> selectFw();
+	List<Map<Object,Object>> selectWg(String jurisdiction);
+	List<Map<Object,Object>> selectJy(String jurisdiction);
+	List<Map<Object,Object>> selectYs(String jurisdiction);
+	List<Map<Object,Object>> seleFj(String jurisdiction);
+	List<Map<Object,Object>> selJur();
+	String selJurchilder(String id);
+	List<Map<Object,Object>> seleJuList(String substring);
 
 	Map<String, String> queryYearZ(String year,String jurisdiction,String deptid);
 	Map<String, String> queryYearZc(String year,String jurisdiction,String deptid);
 	Map<String, String> queryYearCz(String year,String jurisdiction,String deptid);
 	Map<String, String> queryYearKh(String year,String jurisdiction,String deptid);
+	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);
+
+	/**
+	 * 查询当前单位是否有子级单位
+	 * @param informationStatisticsVO
+	 * @return
+	 */
+	List<Dept> getDeptHashChildrens(@Param("information") InformationStatisticsVO informationStatisticsVO);
+
+
+	/**
+	 * 查询单位的人数
+	 * @param dept
+	 * @return
+	 */
+	Integer selectInformationUserNumCount(@Param("dept")Dept dept);
+
+	/**
+	 * 查询单位的已派遣人数
+	 * @param dept
+	 * @return
+	 */
+	Integer selectInformationDispatcherNumCount(@Param("dept")Dept dept);
+
+	/**
+	 * 查询单位持证的人数
+	 * @param dept
+	 * @return
+	 */
+	Integer selectInformationHoldNumCount(@Param("dept")Dept dept);
+
+	/**
+	 * 服务单位数
+	 * @param dept
+	 * @return
+	 */
+	Integer selectInformationUnitNumCount(@Param("dept")Dept dept);
+
+	/**
+	 * 服务单位到期数
+	 * @param dept
+	 * @return
+	 */
+	Integer selectInformationUnitExpireNumCount(@Param("dept")Dept dept);
+
+	/**
+	 * 查询当前单位是否有子级单位
+	 * @param informationVO
+	 * @return
+	 */
+	List<Dept> getDeptHashChildren(@Param("information") InformationVO informationVO);
+	List<Map<Object,Object>> selectBxc(IPage page, String jurisdiction,String type);
+
+	/**
+	 * 查询单位的未派遣人数
+	 * @param dept
+	 * @return
+	 */
+	Integer selectInformationNotDispatcherNumCount(@Param("dept")Dept dept);
+
+	/**
+	 * 查询单位的已采集照片人数
+	 * @param dept
+	 * @return
+	 */
+	Integer selectInformationUnitAvatarNumCount(@Param("dept")Dept dept);
+
+	/**
+	 * 查询单位的未采集照片人数
+	 * @param dept
+	 * @return
+	 */
+	Integer selectInformationUnitNotAvatarNumCount(@Param("dept")Dept dept);
+
+	/**
+	 * 已采集指纹
+	 * @param dept
+	 * @return
+	 */
+	Integer selectInformationUnitZwNumCount(@Param("dept")Dept dept);
+
+	/**
+	 * 审查异常
+	 * @param dept
+	 * @return
+	 */
+	Integer selectInformationUnitYcNumCount(@Param("dept")Dept dept);
+
+	/**
+	 * 缴纳社保
+	 * @param dept
+	 * @return
+	 */
+	Integer selectInformationUnitJnsbNumCount(@Param("dept")Dept dept);
+
+	/**
+	 * 查询部门信息
+	 * @param departmentid
+	 * @return
+	 */
+	List<Dept> getDeptChildrens(String departmentid);
+
+	/**
+	 * 保安员统计
+	 * @param jurisdiction 辖区id
+	 * @param deptid 部门名称
+	 * @param stats 公司类型
+	 * @param startTime 企业注册时间
+	 * @param endTime 企业注册时间
+	 * @return
+	 */
+	List<ExportInformationSecurityStatistics> exportSecurityStatisInfo(String jurisdiction, String deptid, String stats, String startTime, String endTime);
+
+	/**
+	 * 业务情况统计
+	 * @param jurisdiction 辖区id
+	 * @param deptid 部门名称
+	 * @param stats 公司类型
+	 * @param startTime 企业注册时间
+	 * @param endTime 企业注册时间
+	 * @return
+	 */
+	List<ExportInformationExcel> exportBusinessStatis(String jurisdiction, String deptid, String stats, String startTime, String endTime);
+
+	/**
+	 * 查询公司所有的父级
+	 * @param information
+	 * @return
+	 */
+	List<String> getDeptDetails(@Param("information") InformationVO information);
+
+	/**
+	 * 根据部门id 查询公司信息
+	 * @param s
+	 * @return
+	 */
+	InformationVO getInformationDetails(@Param("deptId") String deptId);
 }

--
Gitblit v1.9.3