/* * 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.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; /** * 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); List> seleP(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); List selectLi(IPage page, String jurisdiction, String deptid,String stats); 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 selectYw(IPage page,String jurisdiction,String deptid,String stats); 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> 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> 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); }