|
|
@ -82,7 +82,7 @@ public class OrderController {
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private WarehouseTempService warehouseTempService;
|
|
|
|
private WarehouseTempService warehouseTempService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/warehouse/inout/order/filter")
|
|
|
|
@GetMapping("/warehouse/inout/order/filter")
|
|
|
|
public BaseResponse filterOrder(OrderFilterRequest orderFilterRequest, BindingResult bindingResult) {
|
|
|
|
public BaseResponse filterOrder(OrderFilterRequest orderFilterRequest, BindingResult bindingResult) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
@ -183,7 +183,7 @@ public class OrderController {
|
|
|
|
* @param orderFilterRequest
|
|
|
|
* @param orderFilterRequest
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("admin/warehouse/inout/order/listerror")
|
|
|
|
@GetMapping("admin/warehouse/inout/order/listerror")
|
|
|
|
public BaseResponse listOrderError(OrderFilterRequest orderFilterRequest) {
|
|
|
|
public BaseResponse listOrderError(OrderFilterRequest orderFilterRequest) {
|
|
|
|
AuthAdmin authAdmin = authAdminService.getCurrentUser();
|
|
|
|
AuthAdmin authAdmin = authAdminService.getCurrentUser();
|
|
|
@ -204,7 +204,7 @@ public class OrderController {
|
|
|
|
* @param orderFilterRequest
|
|
|
|
* @param orderFilterRequest
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/warehouse/inout/order/filterAdditionalOrder")
|
|
|
|
@GetMapping("/warehouse/inout/order/filterAdditionalOrder")
|
|
|
|
public BaseResponse filterAdditionalOrder(OrderFilterRequest orderFilterRequest) {
|
|
|
|
public BaseResponse filterAdditionalOrder(OrderFilterRequest orderFilterRequest) {
|
|
|
|
AuthAdmin authAdmin = authAdminService.getCurrentUser();
|
|
|
|
AuthAdmin authAdmin = authAdminService.getCurrentUser();
|
|
|
@ -232,7 +232,7 @@ public class OrderController {
|
|
|
|
* @param bindingResult
|
|
|
|
* @param bindingResult
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/warehouse/inout/order/filterSupplementOrder")
|
|
|
|
@GetMapping("/warehouse/inout/order/filterSupplementOrder")
|
|
|
|
public BaseResponse filterSupplementOrder(OrderFilterRequest orderFilterRequest, BindingResult bindingResult) {
|
|
|
|
public BaseResponse filterSupplementOrder(OrderFilterRequest orderFilterRequest, BindingResult bindingResult) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
@ -263,7 +263,7 @@ public class OrderController {
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/warehouse/inout/order/mergeOrder")
|
|
|
|
@PostMapping("/warehouse/inout/order/mergeOrder")
|
|
|
|
public BaseResponse mergeOrder(@RequestBody OrderMergeRequest orderMergeRequest, BindingResult bindingResult) {
|
|
|
|
public BaseResponse mergeOrder(@RequestBody OrderMergeRequest orderMergeRequest, BindingResult bindingResult) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
@ -305,7 +305,7 @@ public class OrderController {
|
|
|
|
return ResultVOUtils.success("添加成功");
|
|
|
|
return ResultVOUtils.success("添加成功");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/warehouse/inout/order/updateSpms")
|
|
|
|
@PostMapping("/warehouse/inout/order/updateSpms")
|
|
|
|
public BaseResponse uploadSpms(@RequestBody OrderUploadRequest orderUploadRequest, BindingResult bindingResult) {
|
|
|
|
public BaseResponse uploadSpms(@RequestBody OrderUploadRequest orderUploadRequest, BindingResult bindingResult) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
@ -416,7 +416,7 @@ public class OrderController {
|
|
|
|
* @param orderDetailEntity
|
|
|
|
* @param orderDetailEntity
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/warehouse/inout/order/detail/update")
|
|
|
|
@PostMapping("/warehouse/inout/order/detail/update")
|
|
|
|
public BaseResponse updateStockOrderDetail(OrderDetailEntity orderDetailEntity) {
|
|
|
|
public BaseResponse updateStockOrderDetail(OrderDetailEntity orderDetailEntity) {
|
|
|
|
if (null != orderDetailEntity) {
|
|
|
|
if (null != orderDetailEntity) {
|
|
|
@ -431,7 +431,7 @@ public class OrderController {
|
|
|
|
* @param orderEditRequest
|
|
|
|
* @param orderEditRequest
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/udiwms/inout/order/updateOrderInfo")
|
|
|
|
@PostMapping("/udiwms/inout/order/updateOrderInfo")
|
|
|
|
public BaseResponse updateOrderInfo(@RequestBody OrderEditRequest orderEditRequest) {
|
|
|
|
public BaseResponse updateOrderInfo(@RequestBody OrderEditRequest orderEditRequest) {
|
|
|
|
if (null == orderEditRequest || StrUtil.isBlank(orderEditRequest.getActDate()) || CollUtil.isEmpty(orderEditRequest.getOrderIds())) {
|
|
|
|
if (null == orderEditRequest || StrUtil.isBlank(orderEditRequest.getActDate()) || CollUtil.isEmpty(orderEditRequest.getOrderIds())) {
|
|
|
@ -447,7 +447,7 @@ public class OrderController {
|
|
|
|
* @param orderId 单据号
|
|
|
|
* @param orderId 单据号
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/udiwms/stock/order/supplementOrder")
|
|
|
|
@GetMapping("/udiwms/stock/order/supplementOrder")
|
|
|
|
public BaseResponse supplementOrder(@RequestParam("orderId") String orderId) {
|
|
|
|
public BaseResponse supplementOrder(@RequestParam("orderId") String orderId) {
|
|
|
|
if (StrUtil.isBlank(orderId)) {
|
|
|
|
if (StrUtil.isBlank(orderId)) {
|
|
|
@ -467,7 +467,7 @@ public class OrderController {
|
|
|
|
* @param orderId
|
|
|
|
* @param orderId
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/udiwms/inout/order/filterOrderForDelete")
|
|
|
|
@GetMapping("/udiwms/inout/order/filterOrderForDelete")
|
|
|
|
public BaseResponse filterOrderForDelete(String orderId) {
|
|
|
|
public BaseResponse filterOrderForDelete(String orderId) {
|
|
|
|
if (StrUtil.isBlank(orderId)) {
|
|
|
|
if (StrUtil.isBlank(orderId)) {
|
|
|
@ -498,7 +498,7 @@ public class OrderController {
|
|
|
|
* @param addOrderChangeRequest
|
|
|
|
* @param addOrderChangeRequest
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/udiwms/stock/order/change")
|
|
|
|
@PostMapping("/udiwms/stock/order/change")
|
|
|
|
public BaseResponse stockOrderChange(@RequestBody AddOrderChangeRequest addOrderChangeRequest) {
|
|
|
|
public BaseResponse stockOrderChange(@RequestBody AddOrderChangeRequest addOrderChangeRequest) {
|
|
|
|
OrderEntity originOrder = orderService.findById(addOrderChangeRequest.getOrderId());
|
|
|
|
OrderEntity originOrder = orderService.findById(addOrderChangeRequest.getOrderId());
|
|
|
@ -560,7 +560,7 @@ public class OrderController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//手持终端下载订单校验
|
|
|
|
//手持终端下载订单校验
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/udiwms/inout/order/download")
|
|
|
|
@GetMapping("/udiwms/inout/order/download")
|
|
|
|
public BaseResponse downloadOrder(OrderFilterRequest orderFilterRequest, BindingResult bindingResult) {
|
|
|
|
public BaseResponse downloadOrder(OrderFilterRequest orderFilterRequest, BindingResult bindingResult) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
@ -610,7 +610,7 @@ public class OrderController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//手持终端验收完成后,更新订单状态
|
|
|
|
//手持终端验收完成后,更新订单状态
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/spms/inout/order/check/updateStatus")
|
|
|
|
@PostMapping("/spms/inout/order/check/updateStatus")
|
|
|
|
public BaseResponse updateStatus(@RequestBody UpdateExportStatusRequest updateExportStatusRequest, BindingResult bindingResult) {
|
|
|
|
public BaseResponse updateStatus(@RequestBody UpdateExportStatusRequest updateExportStatusRequest, BindingResult bindingResult) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
@ -632,7 +632,7 @@ public class OrderController {
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/warehouse/inout/order/submitWebScanOrder")
|
|
|
|
@PostMapping("/warehouse/inout/order/submitWebScanOrder")
|
|
|
|
public BaseResponse submitWebScanOrder(@RequestBody AddOrderRequest addOrderRequest, BindingResult bindingResult) {
|
|
|
|
public BaseResponse submitWebScanOrder(@RequestBody AddOrderRequest addOrderRequest, BindingResult bindingResult) {
|
|
|
|
if (bindingResult.hasErrors() || null == addOrderRequest || StrUtil.isBlank(addOrderRequest.getOrderId())) {
|
|
|
|
if (bindingResult.hasErrors() || null == addOrderRequest || StrUtil.isBlank(addOrderRequest.getOrderId())) {
|
|
|
|