| | |
| | | now, // 添加时间 |
| | | 9527L, // 修改人员 |
| | | now, // 修改时间 |
| | | null // 备注 |
| | | null, // 备注 |
| | | null |
| | | ); |
| | | if (!orderService.insert(order)) { |
| | | throw new CoolException("生成单据主档失败,请联系管理员"); |
| | |
| | | now, // 添加时间 |
| | | 9527L, // 修改人员 |
| | | now, // 修改时间 |
| | | null // 备注 |
| | | null, // 备注 |
| | | null |
| | | ); |
| | | if (!orderService.insert(order)) { |
| | | throw new CoolException("生成单据主档失败,请联系管理员"); |
| | |
| | | } |
| | | } |
| | | for (DetlDto detlDto : list) { |
| | | if (detlDto.getMatnr().substring(0,1).equals("B")) { |
| | | detlDto.setMatnr(detlDto.getMatnr().substring(1)); |
| | | }; |
| | | Mat mat = matService.selectByMatnr(detlDto.getMatnr()); |
| | | OrderDetl orderDetl = new OrderDetl(); |
| | | if (Cools.isEmpty(mat)) { |