| | |
| | | pla.setStatus(GlobleParameter.PLA_STATUS_1); |
| | | this.updateById(pla); |
| | | |
| | | SaasUtils.insertLog(0,pla.getLocNo(),pla.getBrand(),plaQty.getOrderWeight(),user.getUsername(),null,pla.getBatch(),pla.getPackageNo()); |
| | | SaasUtils.insertLog(0,pla.getLocNo(),pla.getBrand(),plaQty.getOrderWeight(),user.getUsername(), |
| | | null,pla.getBatch(),pla.getPackageNo(),pla.getOwner(),pla.getWorkshop()); |
| | | |
| | | }); |
| | | } |
| | |
| | | @Override |
| | | public Page<Pla> getStockStatisAll(Page<Pla> page) { |
| | | |
| | | List<Pla> plaList; |
| | | if(Cools.isEmpty(page.getCondition().get("brand"))){ |
| | | page.setRecords(baseMapper.getStockStatisAll()); |
| | | plaList=baseMapper.getStockStatisAll(); |
| | | }else { |
| | | page.setRecords(baseMapper.getStockStatisAllByBrand(page.getCondition().get("brand").toString())); |
| | | plaList = baseMapper.getStockStatisAllByBrand(page.getCondition().get("brand").toString()); |
| | | } |
| | | |
| | | double weightSum = plaList.stream().mapToDouble(Pla::getWeight).sum(); |
| | | |
| | | // 最后一条记录仅供合计重量信息展示 |
| | | Pla pla = new Pla(); |
| | | pla.setBrand("合计"); |
| | | pla.setMatnr(""); |
| | | pla.setWeight(weightSum); |
| | | plaList.add(pla); |
| | | |
| | | page.setRecords(plaList); |
| | | page.setTotal(0); |
| | | return page; |
| | | } |