| | |
| | | } else { |
| | | list.add(dto); |
| | | } |
| | | dto.setWeight(detail.getWeight()); |
| | | } |
| | | for (DetlDto detlDto : list) { |
| | | Mat mat = matService.selectByMatnr(detlDto.getMatnr()); |
| | |
| | | orderDetl.setUpdateTime(now); |
| | | orderDetl.setStatus(1); |
| | | orderDetl.setQty(0.0D); |
| | | orderDetl.setWeight(detlDto.getWeight()); |
| | | if (!orderDetlService.insert(orderDetl)) { |
| | | throw new CoolException("生成单据明细失败,请联系管理员"); |
| | | } |
| | |
| | | } else { |
| | | list.add(dto); |
| | | } |
| | | dto.setWeight(detail.getWeight()); |
| | | } |
| | | for (DetlDto detlDto : list) { |
| | | Mat mat = matService.selectByMatnr(detlDto.getMatnr()); |
| | |
| | | orderDetl.setUpdateTime(now); |
| | | orderDetl.setStatus(1); |
| | | orderDetl.setQty(0.0D); |
| | | orderDetl.setWeight(detlDto.getWeight()); |
| | | if (!orderDetlService.insert(orderDetl)) { |
| | | throw new CoolException("生成单据明细失败,请联系管理员"); |
| | | } |
| | |
| | | |
| | | @Override |
| | | @Transactional |
| | | public List<StockVo> queryStock() { |
| | | return locDetlService.queryStockTotal(); |
| | | public List<StockVo> queryStock(StockVo stockVo) { |
| | | return locDetlService.queryStockTotal(stockVo); |
| | | } |
| | | |
| | | @Override |
| | |
| | | mat.setStatus(1); |
| | | mat.setCreateTime(now); |
| | | mat.setUpdateTime(now); |
| | | if (Cools.isEmpty(matParam.getLength()) || matParam.getLength() == 0) { |
| | | mat.setLength(null); |
| | | } |
| | | if (!matService.insert(mat)) { |
| | | throw new CoolException("服务器内部错误,请联系管理员"); |
| | | } else { |