| | |
| | | Date now = new Date(); |
| | | pack = new Pack( |
| | | param.getBarcode(), // 条码[非空] |
| | | analyse.getMatnr(), // 物料号 |
| | | analyse.getMatnr(), // 品号 |
| | | analyse.getBarcode(), // 序列码 |
| | | 1L, // 订单状态 |
| | | 1, // 状态 |
| | |
| | | if (!matService.insert(mat)) { |
| | | throw new CoolException("服务器内部错误,请联系管理员"); |
| | | } else { |
| | | log.info("打包上线添加新物料[物料号:{}]", mat.getMatnr()); |
| | | log.info("打包上线添加新物料[品号:{}]", mat.getMatnr()); |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | for (MatSyncParam.MatParam matParam : param.getMatDetails()) { |
| | | if (Cools.isEmpty(matParam.getMatnr())) { |
| | | throw new CoolException("物料号不能为空"); |
| | | throw new CoolException("品号不能为空"); |
| | | } |
| | | |
| | | Date now = new Date(); |
| | |
| | | if (!matService.insert(mat)) { |
| | | throw new CoolException("服务器内部错误,请联系管理员"); |
| | | } else { |
| | | log.info("同步新物料[物料号:{}]", mat.getMatnr()); |
| | | log.info("同步新物料[品号:{}]", mat.getMatnr()); |
| | | } |
| | | } else { |
| | | // mat.sync(param); |