/* * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * Neither the name of the dreamlu.net developer nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * Author: Chill 庄骞 (smallchill@163.com) */ 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; /** * Mapper 接口 * * @author BladeX * @since 2021-07-07 */ public interface InformationMapper extends BaseMapper { /** * 自定义分页 * * @param page * @param information * @return */ List 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> selectInCount(String jurisdiction,String deptid); List> selectCs(String jurisdiction,String deptid); List> selectTo(String jurisdiction,String deptid); Map queryYearSoil(String year,String jurisdiction,String deptid); Map queryYearPz(String year,String jurisdiction,String deptid); Map queryYearAn(String year,String jurisdiction,String deptid); List> queryCountB(String jurisdiction,String deptid); /** * 保安员统计查询 * @param page * @param jurisdiction * @param deptid * @param stats * @param startTime * @param endTime * @return */ List selectLi(IPage page, String jurisdiction, String deptid,String stats,String startTime,String endTime); List> queryCountZc(String jurisdiction,String deptid); List> queryCountCz(String jurisdiction,String deptid); List> queryCountSb(String jurisdiction,String deptid); List> queryCountKh(String jurisdiction,String deptid); List> queryCountPq(String jurisdiction,String deptid); List> seleP(String jurisdiction,String deptid); List 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> selectJur(); int selectExtypeUser(); List> selectExtype(String jurisdiction,String deptid,String type); List> selectCf(String jurisdiction); List> selectCl(String jurisdiction); List> selectBx(String jurisdiction,String deptid,String type); List> selectBxs(String jurisdiction); List> seCountI(String jurisdiction,String deptid); List> selectAge(String jurisdiction,String deptid); String seCountUm(String jurisdiction,String deptid); String seCountUg(String jurisdiction,String deptid); List> 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> selectFw(); List> selectWg(String jurisdiction); List> selectJy(String jurisdiction); List> selectYs(String jurisdiction); List> seleFj(String jurisdiction); List> selJur(); String selJurchilder(String id); List> seleJuList(String substring); Map queryYearZ(String year,String jurisdiction,String deptid); Map queryYearZc(String year,String jurisdiction,String deptid); Map queryYearCz(String year,String jurisdiction,String deptid); Map queryYearKh(String year,String jurisdiction,String deptid); Map queryYearBanan(String year,String jurisdiction,String deptid); Map queryYearDe(String year,String jurisdiction,String deptid); void deleteDept(String ids); /** * 获取保安公司信息(本市保安公司,分公司)包含经纬度 * @return */ List getSecurityUnitPositionInfo(); /** * 根据辖区查询保安公司分页信息(本市保安公司,分公司) * @param page 分页条件 * @param information 查询条件 * @return */ List getSecurityUnitInfoPage(IPage page,@Param("information") InformationVO information); /** * 根据辖区查询统计保安公司持证情况分页信息(本市保安公司,分公司) * @param page 分页条件 * @param information 查询条件 * @return */ List getSecurityUnitHoldInfoPage(IPage page,@Param("information") InformationVO information); /** * 根据辖区查询统计保安公司(1:持证率低于50%, 2:派遣率低于50% 3:缴纳社保率低于50% 4:保险缴纳 的保安公司个数及保安公司分页信息(本市保安公司,分公司) * @param page 分页条件 * @param information 查询条件 * @return */ List getSecurityUnitLess50Page(IPage page, @Param("type") Integer type, @Param("information") InformationVO information); /** * 根据辖区查询统计保安公司考试通过率低于50%的保安公司个数及保安公司分页信息(本市保安公司,分公司) * @param page 分页条件 * @param information 查询条件 * @return */ List getSecurityUnitExamLess50Page(IPage page,@Param("information") InformationVO information); /** * 根据辖区查询统计当前辖区下的保安公司(本市保安公司,分公司)预警信息,包含(未持证,现实表现差,未缴纳社保,资格审查异常) * @param page 分页条件 * @param information 查询条件 * @return */ @SqlParser(filter = true) List getSubstationWarnInfoPage(IPage page,@Param("information") InformationVO information); /** * 根据辖区查询统计当前辖区下的保安公司(本市保安公司,分公司))服务对象小于2家的公司数量的分页信息 * @param page 分页条件 * @param information 查询条件 * @return */ List getSecurityUnitServerLess2Page(IPage page,@Param("information") InformationVO information); /** * 统计表现差的信息 * @return */ List getSecurityPerformanceGroupCountList(); /** * 统计资格审查异常信息 * @return */ List getSecurityExaminationGroupCountList(); /** * 考试通过率低于50% * @return */ List getSecurityExamPassingGroupCountList(); /** * 查询 1 持证率低于50%, 2 社保缴纳率低于50%, 3 派遣率低于50% * @param type 1 持证率低于50%, 2 社保缴纳率低于50%, 3 派遣率低于50% * @return */ List getSecurityHoldAndSoidAndDispatchGroupCountList(Integer type); /** * 查询当前单位是否有子级单位 * @param informationStatisticsVO * @return */ List 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 getDeptHashChildren(@Param("information") InformationVO informationVO); List> 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 getDeptChildrens(String departmentid); /** * 保安员统计 * @param jurisdiction 辖区id * @param deptid 部门名称 * @param stats 公司类型 * @param startTime 企业注册时间 * @param endTime 企业注册时间 * @return */ List exportSecurityStatisInfo(String jurisdiction, String deptid, String stats, String startTime, String endTime); /** * 业务情况统计 * @param jurisdiction 辖区id * @param deptid 部门名称 * @param stats 公司类型 * @param startTime 企业注册时间 * @param endTime 企业注册时间 * @return */ List exportBusinessStatis(String jurisdiction, String deptid, String stats, String startTime, String endTime); /** * 查询公司所有的父级 * @param information * @return */ List getDeptDetails(@Param("information") InformationVO information); /** * 根据部门id 查询公司信息 * @param s * @return */ InformationVO getInformationDetails(@Param("deptId") String deptId); }