|
@@ -3770,6 +3770,7 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
|
public List<PmDemandResVo> getListByStatus(String projectStatus) {
|
|
public List<PmDemandResVo> getListByStatus(String projectStatus) {
|
|
LambdaQueryWrapper<PmDemand> lw = new LambdaQueryWrapper<PmDemand>();
|
|
LambdaQueryWrapper<PmDemand> lw = new LambdaQueryWrapper<PmDemand>();
|
|
lw.eq(PmDemand::getProjectStatus, projectStatus);
|
|
lw.eq(PmDemand::getProjectStatus, projectStatus);
|
|
|
|
+
|
|
List<PmDemand> demandList = this.baseMapper.selectList(lw);
|
|
List<PmDemand> demandList = this.baseMapper.selectList(lw);
|
|
//数据转换
|
|
//数据转换
|
|
List<PmDemandResVo> pmDemandResponseVoList = new ArrayList<>();
|
|
List<PmDemandResVo> pmDemandResponseVoList = new ArrayList<>();
|
|
@@ -3924,14 +3925,14 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
|
}
|
|
}
|
|
|
|
|
|
//查询本单位还是本单位及子孙级----要查询子单位的超额数据
|
|
//查询本单位还是本单位及子孙级----要查询子单位的超额数据
|
|
- public List<Integer> isQueryAll(Integer queryAll) {
|
|
|
|
- List<Integer> deptList = new ArrayList<>();
|
|
|
|
- Integer deptId = Math.toIntExact(SecurityUtils.getDeptId());
|
|
|
|
|
|
+ public List<Long> isQueryAll(Integer queryAll) {
|
|
|
|
+ List<Long> deptList = new ArrayList<>();
|
|
|
|
+ Long deptId = SecurityUtils.getDeptId();
|
|
//查询全部
|
|
//查询全部
|
|
if (queryAll.equals(-1)) {
|
|
if (queryAll.equals(-1)) {
|
|
//获取到子孙级部门id
|
|
//获取到子孙级部门id
|
|
if (deptService.hasChildByDeptId(SecurityUtils.getDeptId())) {
|
|
if (deptService.hasChildByDeptId(SecurityUtils.getDeptId())) {
|
|
- List<Integer> children = deptService.getDeptChildren(Math.toIntExact(deptId));
|
|
|
|
|
|
+ List<Long> children = deptService.getDeptChildren(deptId);
|
|
System.err.println(children.size());
|
|
System.err.println(children.size());
|
|
deptList.addAll(children);
|
|
deptList.addAll(children);
|
|
}
|
|
}
|
|
@@ -3954,9 +3955,9 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
|
}
|
|
}
|
|
if (deptService.hasChildByDeptId(Long.valueOf(queryZd))) {
|
|
if (deptService.hasChildByDeptId(Long.valueOf(queryZd))) {
|
|
//获取子级部门d
|
|
//获取子级部门d
|
|
- List<Integer> childByDeptId = deptService.getChildIdByDeptId(Long.valueOf(queryZd));
|
|
|
|
|
|
+ List<Long> childByDeptId = deptService.getChildIdByDeptId(Long.valueOf(queryZd));
|
|
//取出所有可以进行统计的项目id
|
|
//取出所有可以进行统计的项目id
|
|
- for (Integer cid : childByDeptId) {
|
|
|
|
|
|
+ for (Long cid : childByDeptId) {
|
|
LambdaQueryWrapper<PmAuditDeptRef> ll = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<PmAuditDeptRef> ll = new LambdaQueryWrapper<>();
|
|
ll.eq(PmAuditDeptRef::getDeptId, cid);
|
|
ll.eq(PmAuditDeptRef::getDeptId, cid);
|
|
ll.eq(PmAuditDeptRef::getRefType, "2");
|
|
ll.eq(PmAuditDeptRef::getRefType, "2");
|