|
|
@ -83,6 +83,24 @@ public class IOOrderStatusController {
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/spms/inout/order/deleteStatus")
|
|
|
|
@PostMapping("/spms/inout/order/deleteStatus")
|
|
|
|
|
|
|
|
public BaseResponse deleteStatus(@RequestBody IOOrderStatusEntity orderStatusFilterRequest,
|
|
|
|
|
|
|
|
BindingResult bindingResult) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
boolean b = ioOrderStatusService.updateOrderStatus(orderStatusFilterRequest);
|
|
|
|
|
|
|
|
if (orderStatusFilterRequest.getStatus() == 2) {
|
|
|
|
|
|
|
|
orderService.deleteByOrderId(orderStatusFilterRequest.getOrderId());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!b) {
|
|
|
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.NOT_NETWORK);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return ResultVOUtils.success("更新成功");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/spms/inout/order/updateStatus")
|
|
|
|
public BaseResponse updateStatus(@RequestBody IOOrderStatusEntity orderStatusFilterRequest,
|
|
|
|
public BaseResponse updateStatus(@RequestBody IOOrderStatusEntity orderStatusFilterRequest,
|
|
|
|
BindingResult bindingResult) {
|
|
|
|
BindingResult bindingResult) {
|
|
|
|
|
|
|
|
|
|
|
@ -99,4 +117,5 @@ public class IOOrderStatusController {
|
|
|
|
return ResultVOUtils.success("更新成功");
|
|
|
|
return ResultVOUtils.success("更新成功");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|