| | |
| | | @Autowired |
| | | private MesApiUtils mesApiUtils; |
| | | |
| | | private final static String LOCATION_NO = "WG-02-001";//mes外购合格库位 |
| | | |
| | | public static final int DIGIT = 6; |
| | | public static final String PREFIX ="KC"; |
| | | |
| | | @AfterReturning(value = "execution(* com.ruoyi.inspect.service.impl.InsOrderServiceImpl.moveRawMaterial(..))") |
| | | @Transactional(rollbackFor = Exception.class,isolation = Isolation.READ_COMMITTED) |
| | | public void doAfterReturning(JoinPoint joinPoint) { |
| | |
| | | .last("limit 1") |
| | | ); |
| | | if(Objects.nonNull(one)){ |
| | | //生成系统编号 |
| | | |
| | | //同步MES实时库存 |
| | | Map<String, Object> requestMap = new HashMap<>(); |
| | | requestMap.put("partNo", one.getPartNo()); // 零件编号 |
| | |
| | | requestMap.put("outerColor", one.getOuterColor()); // 外护颜色 |
| | | requestMap.put("letteringInfo", one.getLetteringInfo()); // 印字信息 |
| | | requestMap.put("reelNumber", one.getDrumNo()); // 盘号 |
| | | requestMap.put("locationNo", "1302"); // 库位编号 |
| | | requestMap.put("locationNo", LOCATION_NO); // 库位编号 |
| | | requestMap.put("customerOrderNo", one.getOrderNo()); // 销售订单号 |
| | | requestMap.put("stockSource", one.getStockSource()); // 库存来源 |
| | | requestMap.put("remark", one.getRemark()); // 备注 |