|
@@ -494,7 +494,7 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
|
|
|
" FROM UFDATA_903_2021.dbo.OM_MOMain om LEFT JOIN UFDATA_903_2021.dbo.OM_MODetails od ON om.MOID = od.MOID " +
|
|
|
" WHERE om.iVerifyStateNew = 2 and om.cCode like '"+plannum+"%' " +
|
|
|
" ) o ON r.iOMoDID = o.MODetailsID " +
|
|
|
- " LEFT JOIN ( " +
|
|
|
+ " JOIN ( " +
|
|
|
" SELECT r1.id,r1.cSource,rs1.cBatch,rs1.cInvCode ,rs1.cPOID,rs1.iQuantity as gou, " +
|
|
|
" isnull(od.iQuantity,0)+ isnull(p.iQuantity,0) as ying,isnull(od.iSendQTY,0)+ isnull(p.iQuantity,0) as yi, " +
|
|
|
" bi.iCost,bi.iMoney,bi.iOriMoney,bi.iTaxPrice " +
|
|
@@ -527,7 +527,7 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
|
|
|
" FROM OM_MOMain om LEFT JOIN OM_MODetails od ON om.MOID = od.MOID " +
|
|
|
" WHERE om.iVerifyStateNew = 2 and om.cCode like '"+plannum+"%' " +
|
|
|
" ) o ON r.iOMoDID = o.MODetailsID " +
|
|
|
- " LEFT JOIN ( " +
|
|
|
+ " JOIN ( " +
|
|
|
" SELECT r1.id,r1.cSource,rs1.cBatch,rs1.cInvCode ,rs1.cPOID,rs1.iQuantity as gou, " +
|
|
|
" isnull(od.iQuantity,0)+ isnull(p.iQuantity,0) as ying,isnull(od.iSendQTY,0)+ isnull(p.iQuantity,0) as yi, " +
|
|
|
" bi.iCost,bi.iMoney,bi.iOriMoney,bi.iTaxPrice " +
|
|
@@ -544,40 +544,6 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
|
|
|
" LEFT JOIN Vendor v ON o.cVenCode= v.cVenCode " +
|
|
|
" GROUP BY c.cInvName,r.cBatch,b.cSource,b.cPOID,v.cVenName ,r.cInvCode " +
|
|
|
" ) as ta GROUP BY cInvName,processUnit";
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
List<Map<String, Object>> list2 = senYuDataSourceOne.queryForList(sqlIngredient);
|
|
|
List<JSONObject> jianSon2 = JsonChangeUtils.toJSONObject(list2);
|
|
|
List<SyCostAllocationIngredient> list4 = new ArrayList<>();
|