|
@@ -274,8 +274,8 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
|
|
|
// " ) b on r.cBatch = b.cBatch and b.cInvCode=r.cInvCode " +
|
|
|
// " GROUP BY c.cInvName,r.cBatch,b.cSource,b.cPOID,v.cVenName ) as ta GROUP BY cInvName,processUnit";
|
|
|
|
|
|
- String sqlIngredient ="SELECT cInvName as goodsName,sum(yi) as usageQuantity,sum(ying) as planQuantity,sum(gou) as purchaseQuantity," +
|
|
|
- "processUnit,sum(gou)-sum(yuu) as fabricremainingQuantity,sum(yu) as fabrictransferQuantity FROM ( " +
|
|
|
+ String sqlIngredient ="SELECT cInvName as goodsName,sum(yi) as usageQuantity,sum(gou) as purchaseQuantity," +
|
|
|
+ "processUnit,sum(gou)-sum(yuu) as ingredientsRemainingQuantity,sum(yu) as ingredientsTransferQuantity FROM ( " +
|
|
|
" " +
|
|
|
" select sum(r.iQuantity) as yu,r.cBatch ,b.cSource,b.cPOID,sum(b.gou) as gou,sum(b.yi) as yi,sum(b.ying) as ying " +
|
|
|
" ,c.cInvName ,v.cVenName as processUnit ,( " +
|