|
@@ -223,7 +223,7 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
|
|
|
" left join rdrecord01 r1 on r1.id=rs1.id " +
|
|
|
" where rs1.cBatch = '"+plannum+"' and rs1.cPOID like '"+plannum+"%' and " +
|
|
|
" r.cBatch = rs1.cBatch and rs1.cInvCode=r.cInvCode " +
|
|
|
- " ) as yuu " +
|
|
|
+ " group by rs1.cInvCode, rs1.cBatch ) as yuu " +
|
|
|
" FROM rdrecords11 r " +
|
|
|
" JOIN ( " +
|
|
|
" SELECT od.MODetailsID,od.cInvCode,om.cVenCode " +
|
|
@@ -330,7 +330,7 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
|
|
|
" left join rdrecord01 r1 on r1.id=rs1.id " +
|
|
|
" where rs1.cBatch = '"+plannum+"' and rs1.cPOID like '"+plannum+"%' and " +
|
|
|
" r.cBatch = rs1.cBatch and rs1.cInvCode=r.cInvCode " +
|
|
|
- " ) as yuu " +
|
|
|
+ " group by rs1.cInvCode, rs1.cBatch ) as yuu " +
|
|
|
" FROM rdrecords11 r " +
|
|
|
" JOIN ( " +
|
|
|
" SELECT od.MODetailsID,od.cInvCode,om.cVenCode " +
|