|
@@ -82,7 +82,7 @@ public class BizInboundOrderController extends BaseController {
|
|
|
/**
|
|
|
* 上架
|
|
|
*/
|
|
|
- @PostMapping("/onSale")
|
|
|
+ @PostMapping("/putAway")
|
|
|
public AjaxResult onSale(@RequestBody BizInboundOrder bizInboundOrder) {
|
|
|
// 入参
|
|
|
// "palletCode": "2410616" -- 托盘码
|
|
@@ -104,7 +104,7 @@ public class BizInboundOrderController extends BaseController {
|
|
|
}
|
|
|
List<BizInboundOrderDetail> details = bizInboundOrderDetailService.query().in("inbound_order_id", list.stream().map( BizInboundOrder::getId).collect(Collectors.toList())).eq("certificate_code", bizInboundOrder.getPackCode()).list();
|
|
|
if (details.isEmpty()) {
|
|
|
- // 错误
|
|
|
+ // 返回合格证不存在错误
|
|
|
return error("合格证不存在");
|
|
|
}
|
|
|
details.forEach(l ->{
|
|
@@ -126,6 +126,6 @@ public class BizInboundOrderController extends BaseController {
|
|
|
});
|
|
|
bizInboundOrderService .updateBatchById(list);
|
|
|
|
|
|
- return success("p2更新成功");
|
|
|
+ return success("更新成功");
|
|
|
}
|
|
|
}
|