| | |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R generateWavesOrderAuto(GenWaveParams params,String stationId) { |
| | | public R generateWavesOrderAuto(GenWaveParams params,String stationId,String locCode) { |
| | | if (Objects.isNull(params.getIds()) || params.getIds().isEmpty()) { |
| | | throw new CoolException("参数不能为空!!"); |
| | | } |
| | |
| | | double sum1 = waveItems.stream().mapToDouble(WaveItem::getAnfme).sum(); |
| | | wave.setAnfme(sum1).setGroupQty(waveItems.size()); |
| | | wave.setStationId(stationId); |
| | | wave.setLocCode(locCode); |
| | | if (!waveService.saveOrUpdate(wave)) { |
| | | throw new CoolException("主单修改失败!!"); |
| | | } |