| | |
| | | 9527L, // 修改人员 |
| | | now, // 修改时间 |
| | | null, // 备注 |
| | | 1 |
| | | 1, |
| | | null |
| | | ); |
| | | |
| | | if (!orderService.insert(order)) { |
| | |
| | | 9527L, // 修改人员 |
| | | now, // 修改时间 |
| | | null, // 备注 |
| | | 2 |
| | | 2, |
| | | param.getKpCstmrName() |
| | | ); |
| | | if (!orderService.insert(order)) { |
| | | throw new CoolException("生成单据主档失败,请联系管理员"); |
| | |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public int syncAnfmeToWeight() { |
| | | List<LocDetl> locDetls = locDetlService.selectList(new EntityWrapper<LocDetl>() |
| | | .isNull("weight")); |
| | | |
| | | int i = 0; |
| | | for (LocDetl locDetl : locDetls) { |
| | | Double weight = MatUtils.calcWeight(locDetl.getMatnr(), locDetl.getAnfme()); |
| | | locDetl.setWeight(weight); |
| | | locDetlService.updateById(locDetl); |
| | | i++; |
| | | } |
| | | return i; |
| | | } |
| | | } |