浏览代码

成本报表 发运 外销单价

liuchaohui 2 年之前
父节点
当前提交
02e12c99be

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

@@ -24,7 +24,7 @@
 			sh.iExchRate AS exchangeRate,
 			sh.cSOCode AS orderNum,
 			c.cInvName AS poStyleNum,
-			sum(shs.iTaxUnitPrice) AS exportUnitPrice ,
+			max(shs.iTaxUnitPrice) AS exportUnitPrice ,
 			sum(shs.iSum) as exportPrice,
 			sum(iNatSum) as rmbAmount,
 			max(so.iTax) as procesUnitPriceusd,
@@ -60,7 +60,7 @@
 			sh.iExchRate AS exchangeRate,
 			sh.cSOCode AS orderNum,
 			c.cInvName AS poStyleNum,
-			sum(shs.iTaxUnitPrice) AS exportUnitPrice ,
+			max(shs.iTaxUnitPrice) AS exportUnitPrice ,
 			sum(shs.iSum) as exportPrice,
 			sum(iNatSum) as rmbAmount,
 			max(so.iTax) as procesUnitPriceusd,
@@ -108,7 +108,7 @@
 		sh.iExchRate AS exchangeRate,
 		sh.cSOCode AS orderNum,
 		c.cInvName AS poStyleNum,
-		sum(shs.iTaxUnitPrice) AS exportUnitPrice ,
+		max(shs.iTaxUnitPrice) AS exportUnitPrice ,
 		sum(shs.iSum) as exportPrice,
 		sum(iNatSum) as rmbAmount,
 		max(so.iTax) as procesUnitPriceusd,