| | |
| | | import org.springblade.modules.information.service.IInformationService; |
| | | import org.springblade.modules.information.vo.InformationVO; |
| | | import org.springblade.modules.information.vo.ResponseVo; |
| | | import org.springblade.modules.system.vo.UserVO; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | for (ResponseVo responseVo : performanceGroupCountList) { |
| | | //辖区id相同则数量相加 |
| | | if (responseVo.getId().equals(id)){ |
| | | count += performanceGroupCountList.get(i).getNum(); |
| | | count += responseVo.getNum(); |
| | | } |
| | | } |
| | | |
| | |
| | | for (ResponseVo responseVo : examinationGroupCountList) { |
| | | //辖区id相同则数量相加 |
| | | if (responseVo.getId().equals(id)){ |
| | | count += examinationGroupCountList.get(i).getNum(); |
| | | count += responseVo.getNum(); |
| | | } |
| | | } |
| | | |
| | |
| | | for (ResponseVo responseVo : examPassingGroupCountList) { |
| | | //辖区id相同则数量相加 |
| | | if (responseVo.getId().equals(id)){ |
| | | count += examPassingGroupCountList.get(i).getNum(); |
| | | count += responseVo.getNum(); |
| | | } |
| | | } |
| | | |
| | |
| | | for (ResponseVo responseVo : holdGroupCountList) { |
| | | //辖区id相同则数量相加 |
| | | if (responseVo.getId().equals(id)){ |
| | | count += holdGroupCountList.get(i).getNum(); |
| | | count += responseVo.getNum(); |
| | | } |
| | | } |
| | | |
| | |
| | | for (ResponseVo responseVo : soidGroupCountList) { |
| | | //辖区id相同则数量相加 |
| | | if (responseVo.getId().equals(id)){ |
| | | count += soidGroupCountList.get(i).getNum(); |
| | | count += responseVo.getNum(); |
| | | } |
| | | } |
| | | |
| | |
| | | for (ResponseVo responseVo : dispatchGroupCountList) { |
| | | //辖区id相同则数量相加 |
| | | if (responseVo.getId().equals(id)){ |
| | | count += dispatchGroupCountList.get(i).getNum(); |
| | | count += responseVo.getNum(); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | return R.data(lists); |
| | | } |
| | | |
| | | /** |
| | | * 根据辖区及保安公司统计未缴纳社保人员 |
| | | * @param query 分页条件 |
| | | * @param information 查询条件 |
| | | * @return |
| | | */ |
| | | @GetMapping("/getNotSocialNumber") |
| | | public R<IPage<UserVO>> getNotSocialNumber(InformationVO information, Query query){ |
| | | return R.data(informationService.getNotSocialAndInsuranceAndDispatcherNumber(Condition.getPage(query), information,1)); |
| | | } |
| | | |
| | | /** |
| | | * 根据辖区及保安公司统计未缴纳保险人员 |
| | | * @param query 分页条件 |
| | | * @param information 查询条件 |
| | | * @return |
| | | */ |
| | | @GetMapping("/getNotInsuranceNumber") |
| | | public R<IPage<UserVO>> getNotInsuranceNumber(InformationVO information, Query query){ |
| | | return R.data(informationService.getNotSocialAndInsuranceAndDispatcherNumber(Condition.getPage(query), information,2)); |
| | | } |
| | | |
| | | /** |
| | | * 根据辖区及保安公司统计未派遣人员 |
| | | * @param query 分页条件 |
| | | * @param information 查询条件 |
| | | * @return |
| | | */ |
| | | @GetMapping("/getNotDispatcherNumber") |
| | | public R<IPage<UserVO>> getNotDispatcherNumber(InformationVO information, Query query){ |
| | | return R.data(informationService.getNotSocialAndInsuranceAndDispatcherNumber(Condition.getPage(query), information,3)); |
| | | } |
| | | } |