| | |
| | | */
|
| | | @PostMapping("/mat/auth")
|
| | | public R getProductForBarcode(@RequestBody Map<String, String> barcode) {
|
| | | if (Objects.isNull(barcode)) {
|
| | | return R.error("参数不能为空!!");
|
| | | }
|
| | | if (StringUtil.isNullOrEmpty(barcode.get("barcode"))) {
|
| | | return R.error("条码不能为空!!");
|
| | | }
|
| | | Order order = orderService.selectByBarcode(barcode.get("barcode"));
|
| | |
|
| | | if (Objects.isNull(order)) {
|
| | | return R.error("订单不存在!");
|
| | | }
|
| | |
|
| | | List<OrderInfoDto> orders = orderService.getDetlForOrderId(order.getId());
|
| | |
|
| | |
| | | throw new CoolException("请求参数不能为空!!");
|
| | | }
|
| | | if (Objects.isNull(param.get("barcode"))) {
|
| | | throw new CoolException("容器编码不能为空");
|
| | | throw new CoolException("播种墙容器编码不能为空");
|
| | | }
|
| | | if (Objects.isNull(param.get("orderNo"))) {
|
| | | throw new CoolException("订单编号不能为空!!");
|