更新状态

version1
anthonyywj2 3 years ago
parent 5e43d9f6fa
commit 4fc6bbf066

@ -83,6 +83,24 @@ public class IOOrderStatusController {
// }
@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,
BindingResult bindingResult) {
@ -99,4 +117,5 @@ public class IOOrderStatusController {
return ResultVOUtils.success("更新成功");
}
}

@ -44,7 +44,9 @@ STOCK_PRINT_POST=http://139.159.187.130:8080/UDI_WMS_MC/udiwms/stockprint/post
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
spring.jackson.time-zone=GMT+8
#UDIWMS_IP=http://139.159.187.130:8080/UDI_WMS_MC
#UDI管理系统地址
UDIWMS_IP=http://127.0.0.1:9991
#自助平台地址
SPMS_IP=http://127.0.0.1:9996
API_KEY=1101
API_SECRET=zBITspLNvuoEd4FaamlSoqxRHmNsmQ9L

Loading…
Cancel
Save