| | |
| | | .eq("del_flag", 0); |
| | | wrapper.select("sum(main_quantity) as totalMainQuantity"); |
| | | Map<String, Object> map = sparesPartInventoryService.getMap(wrapper); |
| | | Double totalMainQuantity = new Double(0); |
| | | BigDecimal totalMainQuantity = new BigDecimal(0); |
| | | if (map != null) { |
| | | totalMainQuantity = (Double)map.get("totalMainQuantity"); |
| | | totalMainQuantity = (BigDecimal)map.get("totalMainQuantity"); |
| | | } |
| | | record.setTotalMainQuantity(totalMainQuantity); |
| | | |
| | |
| | | .eq("del_flag", 0); |
| | | wrapper.select("sum(auxiliary_quantity) as totalAuxiliaryQuantity"); |
| | | Map<String, Object> map2 = sparesPartInventoryService.getMap(wrapper); |
| | | Double totalAuxiliaryQuantity = new Double(0); |
| | | BigDecimal totalAuxiliaryQuantity = new BigDecimal(0); |
| | | if (map != null) { |
| | | totalAuxiliaryQuantity = (Double)map2.get("totalAuxiliaryQuantity"); |
| | | totalAuxiliaryQuantity = (BigDecimal)map2.get("totalAuxiliaryQuantity"); |
| | | } |
| | | record.setTotalAuxiliaryQuantity(totalAuxiliaryQuantity); |
| | | |