|
@@ -212,7 +212,7 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
|
|
|
"LEFT JOIN UFDATA_901_2021.dbo.Customer cc ON ss.cCusCode = cc.cCusCode " +
|
|
|
"WHERE c.cInvCcode like '19%' GROUP BY v.cVenName " +
|
|
|
|
|
|
- "union all" +
|
|
|
+ "union all " +
|
|
|
|
|
|
"SELECT " +
|
|
|
" max(o.omCode) as planNum,max(c.cInvName) as poStyleNum,max(pe.cPersonName) as exportSales," +
|
|
@@ -240,7 +240,7 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
|
|
|
"LEFT JOIN UFDATA_902_2021.dbo.Customer cc ON ss.cCusCode = cc.cCusCode " +
|
|
|
"WHERE c.cInvCcode like '19%' GROUP BY v.cVenName " +
|
|
|
|
|
|
- "union all" +
|
|
|
+ "union all " +
|
|
|
|
|
|
"SELECT " +
|
|
|
" max(o.omCode) as planNum,max(c.cInvName) as poStyleNum,max(pe.cPersonName) as exportSales," +
|
|
@@ -342,7 +342,7 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
|
|
|
" GROUP BY c.cInvName,r.cBatch,b.cSource,b.cPOID,v.cVenName ,r.cInvCode " +
|
|
|
" " +
|
|
|
" ) as ta GROUP BY cInvName,processUnit" +
|
|
|
- "union all " +
|
|
|
+ " UNION all " +
|
|
|
"SELECT cInvName as goodsName,sum(yi) as usageQuantity,sum(ying) as planQuantity,sum(gou) as purchaseQuantity," +
|
|
|
"processUnit,isnull(sum(gou),0)-isnull(sum(yuu),0) as fabricremainingQuantity,sum(yu) as fabrictransferQuantity FROM ( " +
|
|
|
" " +
|