| | |
| | | import com.zy.asrs.entity.Mat; |
| | | import com.zy.asrs.entity.MatPrint; |
| | | import com.zy.asrs.entity.OrderDetl; |
| | | import com.zy.asrs.entity.param.EmptyPlateOutParam; |
| | | import com.zy.asrs.entity.result.KeyValueVo; |
| | | import com.zy.asrs.service.MatService; |
| | | import com.zy.asrs.utils.MatExcelListener; |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/mat/split") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "解析物料码") |
| | | public R split(@RequestParam("matnr") String matnr) { |
| | | if (Cools.isEmpty(matnr)) { |
| | | return R.error("数据为空"); |
| | |
| | | if (split.length != 8) { |
| | | return R.error("数据错误"); |
| | | } |
| | | Mat mat = matService.selectOne(new EntityWrapper<Mat>().eq("matnr", split[0])); |
| | | if (Cools.isEmpty(mat)){ |
| | | return R.error("未查询到物料信息,"+split[0]); |
| | | } |
| | | // Mat mat = matService.selectOne(new EntityWrapper<Mat>().eq("matnr", split[0])); |
| | | // if (Cools.isEmpty(mat)){ |
| | | // return R.error("未查询到物料信息,"+split[0]); |
| | | // } |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("matnr", split[0]); |
| | | map.put("batch", split[1]); |