|
|
@ -86,9 +86,10 @@ public class BsSgcJsjdBuiRegulatoryInspectionsService extends BaseService<BsSgcJ |
|
|
|
int unitNum=0; |
|
|
|
for (BsSgcJsjdBuiRegulatoryInspections childrenBs:bsSgcJsjdBuiRegulatoryInspections){ |
|
|
|
int cNum=0; |
|
|
|
int cUnitNum=0; |
|
|
|
int czNum=0; |
|
|
|
IPage page = bsSgcJsjdBuiRectificationMapper.select(new Page(sp.getPageNum(),sp.getPageSize()),childrenBs.getId()); |
|
|
|
List<RectificationDto> rlist = page.getRecords(); |
|
|
|
czNum=rlist.size(); |
|
|
|
for (RectificationDto rectificationDto : rlist) { |
|
|
|
if(rectificationDto==null){ |
|
|
|
continue; |
|
|
@ -100,7 +101,6 @@ public class BsSgcJsjdBuiRegulatoryInspectionsService extends BaseService<BsSgcJ |
|
|
|
List<String> stringList = bsSgcJsjdBuiEnteInfos.stream().map(BsSgcJsjdBuiEnteInfo::getEnterpriseName).collect(Collectors.toList()); |
|
|
|
rectificationDto.setUnitArray(stringList); |
|
|
|
unitNum=rectificationDto.getUnitArray().size(); |
|
|
|
cUnitNum=rectificationDto.getUnitArray().size(); |
|
|
|
} |
|
|
|
String rectificationSituation = rectificationDto.getRectificationSituation(); |
|
|
|
if (rectificationSituation != null) { |
|
|
@ -115,7 +115,7 @@ public class BsSgcJsjdBuiRegulatoryInspectionsService extends BaseService<BsSgcJ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
childrenBs.setLiabilityUnitsNum(String.valueOf(cUnitNum)); |
|
|
|
childrenBs.setProblemTotal(String.valueOf(czNum)); |
|
|
|
childrenBs.setNotRectifiedNum(String.valueOf(cNum)); |
|
|
|
} |
|
|
|
bs.setNotRectifiedNum(String.valueOf(num)); |
|
|
|