|
|
@@ -103,6 +103,9 @@ public class InspectionServiceImpl implements IInspectionService { |
|
|
|
if(RoleEnum.SUPER_ADMIN.getCode()==type){ |
|
|
|
IPage<InspectionInfoVo> IPageData = inspectionMapper.queryPage(page, query); |
|
|
|
IPageData.getRecords().stream().forEach(x->{ |
|
|
|
//修改执行人属性 |
|
|
|
User user1 = userMapper.selectById(x.getCreateUser()); |
|
|
|
x.setCreateUser(user1.getRealname()); |
|
|
|
int problemsFoundNum = 0; |
|
|
|
int problemsVerifiedNum = 0; |
|
|
|
List<InspectionFile> inspectionFileList = inspectionFileMapper.selectList(Wrappers.<InspectionFile>lambdaQuery() |
|
|
@@ -114,11 +117,15 @@ public class InspectionServiceImpl implements IInspectionService { |
|
|
|
// } |
|
|
|
if(StringUtils.isNotEmpty(inspectionFileList)){ |
|
|
|
problemsVerifiedNum = inspectionFileList.size(); |
|
|
|
for (InspectionFile inspectionFile : inspectionFileList) { |
|
|
|
if (15 == inspectionFile.getStatus()) { |
|
|
|
problemsFoundNum += 1; |
|
|
|
} |
|
|
|
} |
|
|
|
long count = inspectionFileList.stream().filter(t -> t.getStatus() == 15).count(); |
|
|
|
long count1 = inspectionFileList.stream().filter(t -> t.getStatus() == 20).count(); |
|
|
|
long count2 = inspectionFileList.stream().filter(t -> t.getStatus() == 25).count(); |
|
|
|
problemsFoundNum = (int) (count + count1 +count2); |
|
|
|
// for (InspectionFile inspectionFile : inspectionFileList) { |
|
|
|
// if (15 == inspectionFile.getStatus()) { |
|
|
|
// problemsFoundNum += 1; |
|
|
|
// } |
|
|
|
// } |
|
|
|
} |
|
|
|
x.setFlag(0); |
|
|
|
x.setProblemsFoundNum(problemsFoundNum); |
|
|
@@ -142,6 +149,9 @@ public class InspectionServiceImpl implements IInspectionService { |
|
|
|
query.setDeptId(deptId); |
|
|
|
IPage<InspectionInfoVo> pageData = inspectionMapper.queryPage(page,query); |
|
|
|
pageData.getRecords().stream().forEach(x->{ |
|
|
|
//修改执行人属性 |
|
|
|
User user2 = userMapper.selectById(x.getCreateUser()); |
|
|
|
x.setCreateUser(user2.getRealname()); |
|
|
|
int problemsFoundNum = 0; |
|
|
|
int problemsVerifiedNum = 0; |
|
|
|
List<InspectionFile> inspectionFileList = inspectionFileMapper.selectList(Wrappers.<InspectionFile>lambdaQuery() |
|
|
@@ -153,11 +163,15 @@ public class InspectionServiceImpl implements IInspectionService { |
|
|
|
// } |
|
|
|
if(StringUtils.isNotEmpty(inspectionFileList)){ |
|
|
|
problemsVerifiedNum = inspectionFileList.size(); |
|
|
|
for (InspectionFile inspectionFile : inspectionFileList) { |
|
|
|
if (15 == inspectionFile.getStatus()) { |
|
|
|
problemsFoundNum += 1; |
|
|
|
} |
|
|
|
} |
|
|
|
long count = inspectionFileList.stream().filter(t -> t.getStatus() == 15).count(); |
|
|
|
long count1 = inspectionFileList.stream().filter(t -> t.getStatus() == 20).count(); |
|
|
|
long count2 = inspectionFileList.stream().filter(t -> t.getStatus() == 25).count(); |
|
|
|
problemsFoundNum = (int) (count + count1 +count2); |
|
|
|
// for (InspectionFile inspectionFile : inspectionFileList) { |
|
|
|
// if (15 == inspectionFile.getStatus()) { |
|
|
|
// problemsFoundNum += 1; |
|
|
|
// } |
|
|
|
// } |
|
|
|
} |
|
|
|
//获取任务deptId1:1为部门任务 0为子部门任务 |
|
|
|
if(deptIdInt.equals(deptId)){ |