Commit 0932ae5f by levphon

工单标准接口-更新工单

1 parent fb6f4e3b
...@@ -616,11 +616,11 @@ public class WorkOrderService { ...@@ -616,11 +616,11 @@ public class WorkOrderService {
throw new StdInterfaceException("656565", "工单不存在"); throw new StdInterfaceException("656565", "工单不存在");
} }
if (workOrder.getStatus() == 1) { if (WorkOrderStatusEnum.COMPLETED.getStatus().equals(workOrder.getStatus())) {
throw new StdInterfaceException("656565", String.format("工单%s已经被激活", workOrder.getOrderNo())); throw new StdInterfaceException("656565", String.format("工单%s已经被激活", workOrder.getOrderNo()));
} }
if (workOrder.getStatus() == 4) { if (WorkOrderStatusEnum.CANCELED.getStatus().equals(workOrder.getStatus())) {
throw new StdInterfaceException("656565", String.format("工单%s已经被取消", workOrder.getOrderNo())); throw new StdInterfaceException("656565", String.format("工单%s已经被取消", workOrder.getOrderNo()));
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!