|
@ -207,79 +207,40 @@ public class BsSgcSzAqrwService extends BaseService<BsSgcSzAqrwMapper, BsSgcSzAq |
|
|
|
|
|
|
|
|
Integer layer = byId.getLayer(); |
|
|
Integer layer = byId.getLayer(); |
|
|
|
|
|
|
|
|
|
|
|
List<AqrwDto> dtoList = this.getList(taskId); |
|
|
List<NumDto> one = bsSgcSzAqrwMapper.getOne(sysXzqhService.getSubString(adcd), layer,taskId); |
|
|
|
|
|
List<NumDto> two = bsSgcSzAqrwMapper.getTwo(sysXzqhService.getSubString(adcd), layer,taskId); |
|
|
|
|
|
List<NumDto> three = bsSgcSzAqrwMapper.getThree(sysXzqhService.getSubString(adcd), layer,taskId); |
|
|
|
|
|
List<NumDto> threeNum = bsSgcSzAqrwMapper.getThreeNum(sysXzqhService.getSubString(adcd), layer,taskId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<NumDto> Num = bsSgcSzAqrwMapper.getNum(sysXzqhService.getSubString(adcd), layer,taskId); |
|
|
|
|
|
|
|
|
|
|
|
List<NumDto> zeroNum = bsSgcSzAqrwMapper.getZeroNum(sysXzqhService.getSubString(adcd), layer,taskId); |
|
|
|
|
|
List<NumDto> oneNum = bsSgcSzAqrwMapper.getOneNum(sysXzqhService.getSubString(adcd), layer,taskId); |
|
|
|
|
|
List<NumDto> twoNum = bsSgcSzAqrwMapper.getTwoNum(sysXzqhService.getSubString(adcd), layer,taskId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Num.addAll(one); |
|
|
|
|
|
Num.addAll(two); |
|
|
|
|
|
Num.addAll(three); |
|
|
|
|
|
Num.addAll(threeNum); |
|
|
|
|
|
|
|
|
|
|
|
List<AqrwDto> list = new ArrayList<>(); |
|
|
List<NumDto> one = bsSgcSzAqrwMapper.getOne(sysXzqhService.getSubString(adcd), layer,taskId); |
|
|
|
|
|
List<NumDto> two = bsSgcSzAqrwMapper.getTwo(sysXzqhService.getSubString(adcd), layer,taskId); |
|
|
for (NumDto numDto : Num) { |
|
|
List<NumDto> three = bsSgcSzAqrwMapper.getThree(sysXzqhService.getSubString(adcd), layer,taskId); |
|
|
AqrwDto aqrwDto = new AqrwDto(); |
|
|
|
|
|
aqrwDto.setAdcdName(numDto.getName()); |
|
|
|
|
|
for (NumDto dto : one) { |
|
|
|
|
|
if (ObjectUtil.isNotNull(dto) &&dto.getName().equals(numDto.getName())) { |
|
|
|
|
|
aqrwDto.setZeroNum(dto.getNum()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (NumDto dto : two) { |
|
|
for (AqrwDto aqrwDto : dtoList) { |
|
|
if (ObjectUtil.isNotNull(dto) &&dto.getName().equals(numDto.getName())) { |
|
|
|
|
|
aqrwDto.setOneNum(dto.getNum()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (NumDto dto : three) { |
|
|
for (NumDto numDto : one) { |
|
|
if (ObjectUtil.isNotNull(dto) &&dto.getName().equals(numDto.getName())) { |
|
|
if (numDto.getName().equals(aqrwDto.getAdcdName())) { |
|
|
aqrwDto.setTwoNum(dto.getNum()); |
|
|
aqrwDto.setOne(numDto.getNum()); |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (NumDto dto : threeNum) { |
|
|
|
|
|
if (ObjectUtil.isNotNull(dto) &&dto.getName().equals(numDto.getName())) { |
|
|
|
|
|
aqrwDto.setThreeNum(dto.getNum()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
for (NumDto dto : zeroNum) { |
|
|
for (NumDto numDto : two) { |
|
|
if (ObjectUtil.isNotNull(dto) &&dto.getName().equals(numDto.getName())) { |
|
|
if (numDto.getName().equals(aqrwDto.getAdcdName())) { |
|
|
aqrwDto.setZeroNum(dto.getNum()); |
|
|
aqrwDto.setTwo(numDto.getNum()); |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (NumDto dto : oneNum) { |
|
|
|
|
|
if (ObjectUtil.isNotNull(dto) &&dto.getName().equals(numDto.getName())) { |
|
|
|
|
|
aqrwDto.setOneNum(dto.getNum()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
for (NumDto numDto : three) { |
|
|
|
|
|
if (numDto.getName().equals(aqrwDto.getAdcdName())) { |
|
|
|
|
|
aqrwDto.setThree(numDto.getNum()); |
|
|
|
|
|
|
|
|
for (NumDto dto : twoNum) { |
|
|
|
|
|
if (ObjectUtil.isNotNull(dto) &&dto.getName().equals(numDto.getName())) { |
|
|
|
|
|
aqrwDto.setTwoNum(dto.getNum()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
aqrwDto.setTotal(); |
|
|
|
|
|
aqrwDto.setRate(); |
|
|
|
|
|
list.add(aqrwDto); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return list; |
|
|
|
|
|
|
|
|
return dtoList; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|