Browse Source

只有飞行中和飞行完成的才有问题核实按钮

tags/v1.0.0^2^2
wanjing 1 year ago
parent
commit
f102131366
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/query/handle/ProblemVerifyHandle.java

+ 5
- 3
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/query/handle/ProblemVerifyHandle.java View File

@@ -22,12 +22,14 @@ public class ProblemVerifyHandle implements GenerateInspectionFieldHander {
public void handler(User user, Dept dept, InspectionVo inspectionVo) {
// log.info("处理问题核实字段");
if (user.getDeptId().equals(inspectionVo.getDeptId())) {
inspectionVo.setProblemVerify(true);
if (InspectionStatusEnum.IN_FLIGHT.getCode() == inspectionVo.getStatus()
|| InspectionStatusEnum.FLIGHT_COMPLETED.getCode() == inspectionVo.getStatus()) {
inspectionVo.setProblemVerify(true);
}
}
if (null != handler) {
handler.handler(user, dept,inspectionVo);
handler.handler(user, dept, inspectionVo);
return;
}
}

}

Loading…
Cancel
Save