|
|
@@ -100,6 +100,7 @@ public class ReconQueryServiceImpl implements ReconQueryService {
|
|
|
// 安全校验从主表获取
|
|
|
FhzgReconResult result = reconResultMapper.selectById(reqDTO.getId());
|
|
|
Boolean safetyCheckPassed = Objects.nonNull(result) ? result.getFinalCheckIsSafe() : null;
|
|
|
+ String safetyCheckReason = Objects.nonNull(result) ? result.getFinalCheckDetails() : null;
|
|
|
|
|
|
Page<FhzgReconSwitchOp> page = new Page<>(reqDTO.getPageNum(), reqDTO.getPageSize());
|
|
|
Page<FhzgReconSwitchOp> resultPage = reconSwitchOpMapper.selectPage(page,
|
|
|
@@ -111,9 +112,13 @@ public class ReconQueryServiceImpl implements ReconQueryService {
|
|
|
new LambdaQueryWrapper<FhzgReconSwitchSeq>()
|
|
|
.eq(FhzgReconSwitchSeq::getResultId, reqDTO.getId()));
|
|
|
Map<String, Boolean> hotCheckMap = new HashMap<>();
|
|
|
+ Map<String, String> hotCheckReasonMap = new HashMap<>();
|
|
|
switchSeqList.forEach(i -> {
|
|
|
hotCheckMap.put(i.getOpenBreakerId(), i.getHotCheckIsSafe());
|
|
|
hotCheckMap.put(i.getCloseBreakerId(), i.getHotCheckIsSafe());
|
|
|
+ hotCheckReasonMap.put(i.getOpenBreakerId(), i.getHotCheckReason());
|
|
|
+ hotCheckReasonMap.put(i.getCloseBreakerId(), i.getHotCheckReason());
|
|
|
+
|
|
|
});
|
|
|
|
|
|
PageVO<ReconSwitchSeqVO> voPage = new PageVO<>();
|
|
|
@@ -123,7 +128,9 @@ public class ReconQueryServiceImpl implements ReconQueryService {
|
|
|
List<ReconSwitchSeqVO> collect = resultPage.getRecords().stream().map(this::buildSwitchSeqVO).collect(Collectors.toList());
|
|
|
collect.forEach(i -> {
|
|
|
i.setSafetyCheckPassed(safetyCheckPassed);
|
|
|
+ i.setSafetyCheckReason(safetyCheckReason);
|
|
|
i.setHotCheckPassed(hotCheckMap.get(i.getSwitchId()));
|
|
|
+ i.setHotCheckReason(hotCheckReasonMap.get(i.getSwitchId()));
|
|
|
});
|
|
|
voPage.setRecords(collect);
|
|
|
return voPage;
|
|
|
@@ -388,9 +395,9 @@ public class ReconQueryServiceImpl implements ReconQueryService {
|
|
|
}
|
|
|
|
|
|
private Integer isOverLimit(BigDecimal vol) {
|
|
|
- if (vol.compareTo(new BigDecimal("9.3")) < 0) {
|
|
|
+ if (vol.compareTo(new BigDecimal("9.3")) <= 0) {
|
|
|
return 1;
|
|
|
- } else if (vol.compareTo(new BigDecimal("10.7")) > 0) {
|
|
|
+ } else if (vol.compareTo(new BigDecimal("10.7")) >= 0) {
|
|
|
return 2;
|
|
|
}
|
|
|
return 0;
|