Преглед изворни кода

供应商产能报表工时

huxy пре 2 година
родитељ
комит
e2041be36c

+ 3 - 3
jeecg-boot-module-system/src/main/java/org/jeecg/modules/scas/mapper/xml/SupplierCapacityMapper.xml

@@ -190,7 +190,7 @@
         p.dArriveDate,
         sum(p.iQuantity) iQuantity,
         sum(p.iReceivedQTY) iReceivedQTY,
-        sum(cast(isnull(p.coefficient,'0') as decimal)) coefficient
+        sum(p.coefficient*p.iQuantity) coefficient
          from Supplier_Capacity_Test p
            ${ew.customSqlSegment}
         group by p.cDepCode,p.cVenCode,p.dArriveDate
@@ -241,7 +241,7 @@
         p.dArriveDate,
         sum(p.iQuantity) iQuantity,
         sum(p.iReceivedQTY) iReceivedQTY,
-        sum(cast(isnull(p.coefficient,'0') as decimal)) coefficient
+        sum(p.coefficient*p.iQuantity) coefficient
          from Supplier_Capacity_Test p
            ${ew.customSqlSegment}
    group by p.cDepCode,p.dArriveDate
@@ -292,7 +292,7 @@
             p.dArriveDate,
             sum(p.iQuantity) iQuantity,
             sum(p.iReceivedQTY) iReceivedQTY,
-            sum(cast(isnull(p.coefficient,'0') as decimal)) coefficient
+            sum(p.coefficient*p.iQuantity) coefficient
          from Supplier_Capacity_Test p
            ${ew.customSqlSegment}
          group by p.cVenCode,p.dArriveDate