houjie
2023-08-19 950a347957e4a8a195bca74e55a70c93639c9e90
lxzn-module-eam/src/main/java/org/jeecg/modules/spare/controller/SparePartController.java
@@ -110,9 +110,9 @@
                .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);
@@ -120,9 +120,9 @@
                .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);