智慧保安后台管理-外网
Administrator
2021-11-27 a19eb9f3c3d07363830a274fc0493d311b1a85f8
src/main/java/org/springblade/modules/information/service/impl/InformationServiceImpl.java
@@ -74,17 +74,17 @@
            List<Dept> deptList = baseMapper.getDeptHashChildren(informationVO);
            //有子级
            if (deptList.size()>0){
               for (Dept dept : deptList) {
                  //查询当前子单位的人数
                  Integer z = baseMapper.selectInformationUserNumCount(dept) + Integer.parseInt(informationVO.getZnum());
                  informationVO.setZnum(z.toString());
                  //已派遣人数
                  Integer p = baseMapper.selectInformationDispatcherNumCount(dept) + Integer.parseInt(informationVO.getPnum());
                  informationVO.setPnum(p.toString());
                  //持证人数
                  Integer c = baseMapper.selectInformationHoldNumCount(dept) + Integer.parseInt(informationVO.getCnum());
                  informationVO.setCnum(c.toString());
               }
               Dept dept = new Dept();
               dept.setId(Long.parseLong(informationVO.getDepartmentid()));
               //查询当前子单位的人数
               Integer z = baseMapper.selectInformationUserNumCount(dept) + Integer.parseInt(informationVO.getZnum());
               informationVO.setZnum(z.toString());
               //已派遣人数
               Integer p = baseMapper.selectInformationDispatcherNumCount(dept) + Integer.parseInt(informationVO.getPnum());
               informationVO.setPnum(p.toString());
               //持证人数
               Integer c = baseMapper.selectInformationHoldNumCount(dept) + Integer.parseInt(informationVO.getCnum());
               informationVO.setCnum(c.toString());
            }
         }
      }