Browse Source

提交诊断失败去除故障必选项

zhongwei
ty 11 months ago
parent
commit
775d6ab71a
  1. 9
      hzims-service/equipment/src/main/java/com/hnac/hzims/fdp/service/impl/FdpTaskServiceImpl.java

9
hzims-service/equipment/src/main/java/com/hnac/hzims/fdp/service/impl/FdpTaskServiceImpl.java

@ -234,11 +234,12 @@ public class FdpTaskServiceImpl extends BaseServiceImpl<FdpTaskMapper, FdpTaskEn
//诊断成功
if (3 == req.getStatus()) {
fdpSubmitResultDTO.setSuccess(1);
} else if (Func.isNotEmpty(req.getReasonId())) {
fdpSubmitResultDTO.setRootCause(req.getReasonId());
} else {
return R.fail("诊断传送状态异常");
}
// else if (Func.isNotEmpty(req.getReasonId())) {
// fdpSubmitResultDTO.setRootCause(req.getReasonId());
// } else {
// return R.fail("诊断传送状态异常");
// }
if (Func.isNotEmpty(req.getReasonId())) {
fdpSubmitResultDTO.setRootCause(req.getReasonId());
}

Loading…
Cancel
Save