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