Browse Source

成本报表 余下数量

liuchaohui 2 years ago
parent
commit
ef8e806a09

+ 2 - 2
jeecg-boot-module-system/src/main/java/org/jeecg/modules/cost/service/impl/SyCostAllocationServiceImpl.java

@@ -221,7 +221,7 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
                 "                    SELECT sum(r.iQuantity) " +
                 "                    FROM rdrecords01 rs1  " +
                 "          left join rdrecord01 r1 on r1.id=rs1.id " +
-                "          where rs1.cBatch = '"+plannum+"' and rs1.cPOID not like '"+plannum+"%' and " +
+                "          where rs1.cBatch = '"+plannum+"' and rs1.cPOID  like '"+plannum+"%' and " +
                 "                     r.cBatch = rs1.cBatch and rs1.cInvCode=r.cInvCode  " +
                 "      ) as yuu " +
                 "                 FROM rdrecords11  r  " +
@@ -282,7 +282,7 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
                 "                    SELECT sum(r.iQuantity) " +
                 "                    FROM rdrecords01 rs1  " +
                 "          left join rdrecord01 r1 on r1.id=rs1.id " +
-                "          where rs1.cBatch = '"+plannum+"' and rs1.cPOID not like '"+plannum+"%' and " +
+                "          where rs1.cBatch = '"+plannum+"' and rs1.cPOID  like '"+plannum+"%' and " +
                 "                     r.cBatch = rs1.cBatch and rs1.cInvCode=r.cInvCode  " +
                 "      ) as yuu " +
                 "                 FROM rdrecords11  r  " +