|  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "补货操作详情") | 
|---|
|  |  |  | public ResponseEntity<ReturnDataDTO<OrderItemCheckNumDTO>> getReplaceCheck(String orderItemId){ | 
|---|
|  |  |  | return returnData(R.SUCCESS.getCode(), deliveryOrderService.getOtherCheck(orderItemId | 
|---|
|  |  |  | , Constants.CHECK_TYPE.replace.name())); | 
|---|
|  |  |  | , Constants.CHECK_TYPE.replace.name(), false)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @GetMapping("/check/info/lack") | 
|---|
|  |  |  | @ApiOperation(value = "缺货操作详情") | 
|---|
|  |  |  | public ResponseEntity<ReturnDataDTO<OrderItemCheckNumDTO>> getLackCheck(String orderItemId){ | 
|---|
|  |  |  | return returnData(R.SUCCESS.getCode(), deliveryOrderService.getOtherCheck(orderItemId | 
|---|
|  |  |  | , Constants.CHECK_TYPE.lack.name())); | 
|---|
|  |  |  | , Constants.CHECK_TYPE.lack.name(), false)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @PostMapping("/check/info/do/reduce") | 
|---|
|  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "补货操作") | 
|---|
|  |  |  | public ResponseEntity<ReturnDataDTO> doReplaceCheck(@RequestBody OrderItemCheckCommitDTO dto) { | 
|---|
|  |  |  | dto.setType(Constants.CHECK_TYPE.replace.name()); | 
|---|
|  |  |  | deliveryOrderService.doCheck(dto, null, null, null); | 
|---|
|  |  |  | deliveryOrderService.doCheck(dto, null, null); | 
|---|
|  |  |  | String orderId = deliveryOrderService.checkOrderItemStatus(dto.getOrderItemId()); | 
|---|
|  |  |  | deliveryOrderService.checkOrderStatus(orderId); | 
|---|
|  |  |  | return returnData(R.SUCCESS.getCode(), null); | 
|---|
|  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "缺货操作") | 
|---|
|  |  |  | public ResponseEntity<ReturnDataDTO> doLackCheck(@RequestBody OrderItemCheckCommitDTO dto) { | 
|---|
|  |  |  | dto.setType(Constants.CHECK_TYPE.lack.name()); | 
|---|
|  |  |  | deliveryOrderService.doCheck(dto, null, null, null); | 
|---|
|  |  |  | deliveryOrderService.doCheck(dto, null, null); | 
|---|
|  |  |  | String orderId = deliveryOrderService.checkOrderItemStatus(dto.getOrderItemId()); | 
|---|
|  |  |  | deliveryOrderService.checkOrderStatus(orderId); | 
|---|
|  |  |  | return returnData(R.SUCCESS.getCode(), null); | 
|---|