| | |
| | | |
| | | 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 org.springblade.modules.information.mapper.InformationMapper; |
| | |
| | | public IPage selectBxc(IPage page,String jurisdiction,String type) { |
| | | return page.setRecords(baseMapper.selectBxc(page,jurisdiction,type)); |
| | | } |
| | | |
| | | /** |
| | | * 保安员统计 |
| | | * @param jurisdiction 辖区id |
| | | * @param deptid 部门名称 |
| | | * @param stats 公司类型 |
| | | * @param startTime 企业注册时间 |
| | | * @param endTime 企业注册时间 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<ExportInformationSecurityStatistics> exportSecurityStatisInfo(String jurisdiction, String deptid, String stats, String startTime, String endTime) { |
| | | List<ExportInformationSecurityStatistics> list = baseMapper.exportSecurityStatisInfo(jurisdiction, deptid, stats, startTime, endTime); |
| | | if (list.size()>0) { |
| | | //遍历 |
| | | for (ExportInformationSecurityStatistics informationStatisticsVO : list) { |
| | | List<Dept> deptList = baseMapper.getDeptChildrens(informationStatisticsVO.getDepartmentid()); |
| | | //有子级 |
| | | if (deptList.size()>0){ |
| | | Dept dept = new Dept(); |
| | | dept.setId(Long.parseLong(informationStatisticsVO.getDepartmentid())); |
| | | //查询当前子单位的人数 |
| | | Integer z = baseMapper.selectInformationUserNumCount(dept) + informationStatisticsVO.getNum(); |
| | | informationStatisticsVO.setNum(z); |
| | | //持证人数 |
| | | Integer c = baseMapper.selectInformationHoldNumCount(dept) + informationStatisticsVO.getCznum(); |
| | | informationStatisticsVO.setCznum(c); |
| | | //已派遣人数 |
| | | Integer p = baseMapper.selectInformationDispatcherNumCount(dept) + informationStatisticsVO.getPqnum(); |
| | | informationStatisticsVO.setPqnum(p); |
| | | //未派遣人数 |
| | | Integer wpq = baseMapper.selectInformationNotDispatcherNumCount(dept) + informationStatisticsVO.getWpqnum(); |
| | | informationStatisticsVO.setWpqnum(wpq); |
| | | //已采集照片数 |
| | | Integer ycjzp = baseMapper.selectInformationUnitAvatarNumCount(dept) + informationStatisticsVO.getYcjzpnum(); |
| | | informationStatisticsVO.setYcjzpnum(ycjzp); |
| | | //未采集照片数 |
| | | Integer wcjzp = baseMapper.selectInformationUnitNotAvatarNumCount(dept) + informationStatisticsVO.getWcjzpnum(); |
| | | informationStatisticsVO.setWcjzpnum(wcjzp); |
| | | //已采集指纹数 |
| | | Integer ycjzw = baseMapper.selectInformationUnitZwNumCount(dept) + informationStatisticsVO.getYcjzwnum(); |
| | | informationStatisticsVO.setYcjzwnum(ycjzw); |
| | | //审查异常数 |
| | | Integer scyc = baseMapper.selectInformationUnitYcNumCount(dept) + informationStatisticsVO.getScycnum(); |
| | | informationStatisticsVO.setScycnum(scyc); |
| | | //缴纳社保数 |
| | | Integer jnsb = baseMapper.selectInformationUnitJnsbNumCount(dept) + informationStatisticsVO.getJnsbnum(); |
| | | informationStatisticsVO.setJnsbnum(jnsb); |
| | | } |
| | | } |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * 业务情况统计 |
| | | * @param jurisdiction 辖区id |
| | | * @param deptid 部门名称 |
| | | * @param stats 公司类型 |
| | | * @param startTime 企业注册时间 |
| | | * @param endTime 企业注册时间 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<ExportInformationExcel> exportBusinessStatis(String jurisdiction, String deptid, String stats, String startTime, String endTime) { |
| | | List<ExportInformationExcel> list = baseMapper.exportBusinessStatis(jurisdiction, deptid, stats, startTime, endTime); |
| | | if (list.size()>0) { |
| | | //遍历 |
| | | for (ExportInformationExcel informationStatisticsVO : list) { |
| | | List<Dept> deptList = baseMapper.getDeptChildrens(informationStatisticsVO.getDepartmentid()); |
| | | //有子级 |
| | | if (deptList.size()>0){ |
| | | Dept dept = new Dept(); |
| | | dept.setId(Long.parseLong(informationStatisticsVO.getDepartmentid())); |
| | | //查询当前子单位的人数 |
| | | Integer z = baseMapper.selectInformationUserNumCount(dept) + informationStatisticsVO.getZnum(); |
| | | informationStatisticsVO.setZnum(z); |
| | | //已派遣人数 |
| | | Integer p = baseMapper.selectInformationDispatcherNumCount(dept) + informationStatisticsVO.getPqnum(); |
| | | informationStatisticsVO.setPqnum(p); |
| | | //持证人数 |
| | | Integer c = baseMapper.selectInformationHoldNumCount(dept) + informationStatisticsVO.getCznum(); |
| | | informationStatisticsVO.setCznum(c); |
| | | //服务单位数 |
| | | Integer f = baseMapper.selectInformationUnitNumCount(dept) + informationStatisticsVO.getFwnum(); |
| | | informationStatisticsVO.setFwnum(f); |
| | | //服务单位到期数 |
| | | Integer d = baseMapper.selectInformationUnitExpireNumCount(dept) + informationStatisticsVO.getDqnum(); |
| | | informationStatisticsVO.setDqnum(d); |
| | | } |
| | | } |
| | | } |
| | | return list; |
| | | } |
| | | } |