| | |
| | | throw new CoolException("计划数不能为空!!"); |
| | | } |
| | | // //保存扩展字段 |
| | | // try { |
| | | // StringBuffer sb = new StringBuffer(); |
| | | // if (Objects.isNull(wkOrderItem.getFieldsIndex()) || StringUtils.isBlank(wkOrderItem.getFieldsIndex())) { |
| | | // sb.append(wkOrderItem.getMatnrId() + wkOrderItem.getBatch()); |
| | | // //获取16位uuid |
| | | // String uuid16 = Cools.md5Chinese(sb.toString()); |
| | | // wkOrderItem.setFieldsIndex(uuid16); |
| | | // params.put("index", uuid16); |
| | | // } |
| | | // //保存或更新动态字段值 |
| | | // FieldsUtils.updateFieldsValue(params); |
| | | // } catch (Exception e) { |
| | | // throw new RuntimeException(e); |
| | | // } |
| | | try { |
| | | StringBuffer sb = new StringBuffer(); |
| | | if (Objects.isNull(wkOrderItem.getFieldsIndex()) || StringUtils.isBlank(wkOrderItem.getFieldsIndex())) { |
| | | sb.append(wkOrderItem.getMatnrId() + wkOrderItem.getBatch()); |
| | | //获取16位uuid |
| | | String uuid16 = Cools.md5Chinese(sb.toString()); |
| | | wkOrderItem.setFieldsIndex(uuid16); |
| | | params.put("index", uuid16); |
| | | } |
| | | //保存或更新动态字段值 |
| | | FieldsUtils.updateFieldsValue(params); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | wkOrderItem.setUpdateBy(loginUserId).setCreateBy(loginUserId); |
| | | if (!this.saveOrUpdate(wkOrderItem)) { |
| | | throw new CoolException("收货通知单明细保存失败!!"); |