Browse Source

绍兴表计读数缺陷,不展示读数

master
wangguangyuan 3 months ago
parent
commit
f3b3b5a133
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      inspect-main/inspect-main-task/src/main/java/com/inspect/partrolresult/service/impl/PatrolResultServiceImpl.java

+ 4
- 4
inspect-main/inspect-main-task/src/main/java/com/inspect/partrolresult/service/impl/PatrolResultServiceImpl.java View File

@ -873,11 +873,11 @@ public class PatrolResultServiceImpl implements IPatrolResultService {
if(StringUtils.isBlank(threshold)) {
threshold = "";
}
if (threshold.contains("sub_53")) {
if ("1".equals(patrolResultRef.getResultType()) && threshold.contains("sub_53")) {
reportData.setInspectionResults(patrolResultRef.getValue());
}
if ((threshold.contains("sub_52") || threshold.contains("sub_53"))
if ("1".equals(patrolResultRef.getResultType()) && (threshold.contains("sub_52") || threshold.contains("sub_53"))
&& !"0".equals(patrolResultRef.getValue())
&& !"1".equals(patrolResultRef.getValue())
&& !"-1".equals(patrolResultRef.getValue())
@ -1415,11 +1415,11 @@ public class PatrolResultServiceImpl implements IPatrolResultService {
if(StringUtils.isBlank(threshold)) {
threshold = "";
}
if (threshold.contains("sub_53")) {
if ("1".equals(patrolResultRef.getResultType()) && threshold.contains("sub_53")) {
reportData.setInspectionResults(patrolResultRef.getValue());
}
if ((threshold.contains("sub_52") || threshold.contains("sub_53"))
if ("1".equals(patrolResultRef.getResultType()) && (threshold.contains("sub_52") || threshold.contains("sub_53"))
&& !"0".equals(patrolResultRef.getValue())
&& !"1".equals(patrolResultRef.getValue())
&& !"-1".equals(patrolResultRef.getValue())


Loading…
Cancel
Save