Prechádzať zdrojové kódy

成本报表 余下转入

liuchaohui 2 rokov pred
rodič
commit
100c34bb93

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

@@ -407,8 +407,8 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
                                     "        left join OM_MOMaterials od on od.MoDetailsID=o.MODetailsID   " +
                                     "        LEFT JOIN Inventory  c on c.cInvCode=rs1.cInvCode   " +
                                     "        LEFT JOIN Vendor v ON r1.cVenCode= v.cVenCode  " +
-                                    "        where  rs1.cPOID  like '"+plannum+"%' and v.cVenName='"+Fabric.getProcessUnit()+
-                                    "' and c.cInvName='"+Fabric.getGoodsName()+"' " +
+                                    "        where  rs1.cPOID  like '"+plannum+"%'"+// and v.cVenName='"+Fabric.getProcessUnit()+
+                                    " and c.cInvName='"+Fabric.getGoodsName()+"' " +
                                     "        group BY v.cVenName,c.cInvName,rs1.cPOID,rs1.cfree1,rs1.cInvCode,rs1.cBatch " +
                                     "              ) b on r.cBatch = b.cBatch and b.cInvCode=r.cInvCode  " +
                                     "      JOIN (    " +
@@ -440,8 +440,8 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
                                     "     left join OM_MOMaterials od on od.MoDetailsID=o.MODetailsID   " +
                                     "     LEFT JOIN Inventory  c on c.cInvCode=rs1.cInvCode   " +
                                     "     LEFT JOIN Vendor v ON r1.cVenCode= v.cVenCode  " +
-                                    "          where rs1.cPOID not like '"+plannum+"%' and v.cVenName='"+Fabric.getProcessUnit()+
-                                    "' and c.cInvName='"+Fabric.getGoodsName()+"' " +
+                                    "          where rs1.cPOID not like '"+plannum+"%'"+// and v.cVenName='"+Fabric.getProcessUnit()+
+                                    " and c.cInvName='"+Fabric.getGoodsName()+"' " +
                                     "     group BY v.cVenName,c.cInvName,rs1.cPOID,rs1.cfree1,rs1.cInvCode,rs1.cBatch " +
                                     "        ) b on r.cBatch = b.cBatch and b.cInvCode=r.cInvCode  " +
                                     "    group by b.cVenName,b.cInvName,b.cPOID,b.cfree1";
@@ -565,8 +565,8 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
                                     "        left join OM_MOMaterials od on od.MoDetailsID=o.MODetailsID   " +
                                     "        LEFT JOIN Inventory  c on c.cInvCode=rs1.cInvCode   " +
                                     "        LEFT JOIN Vendor v ON r1.cVenCode= v.cVenCode  " +
-                                    "        where  rs1.cPOID  like '"+plannum+"%' and v.cVenName='"+Ingredient.getProcessUnit()+
-                                    "' and c.cInvName='"+Ingredient.getGoodsName()+"' " +
+                                    "        where  rs1.cPOID  like '"+plannum+"%'"+// and v.cVenName='"+Ingredient.getProcessUnit()+
+                                    " and c.cInvName='"+Ingredient.getGoodsName()+"' " +
                                     "        group BY v.cVenName,c.cInvName,rs1.cPOID,rs1.cfree1,rs1.cInvCode,rs1.cBatch " +
                                     "              ) b on r.cBatch = b.cBatch and b.cInvCode=r.cInvCode  " +
                                     "      JOIN (    " +
@@ -598,8 +598,8 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
                                     "     left join OM_MOMaterials od on od.MoDetailsID=o.MODetailsID   " +
                                     "     LEFT JOIN Inventory  c on c.cInvCode=rs1.cInvCode   " +
                                     "     LEFT JOIN Vendor v ON r1.cVenCode= v.cVenCode  " +
-                                    "          where rs1.cPOID not like '"+plannum+"%' and v.cVenName='"+Ingredient.getProcessUnit()+
-                                    "' and c.cInvName='"+Ingredient.getGoodsName()+"' " +
+                                    "          where rs1.cPOID not like '"+plannum+"%'"+// and v.cVenName='"+Ingredient.getProcessUnit()+
+                                    " and c.cInvName='"+Ingredient.getGoodsName()+"' " +
                                     "     group BY v.cVenName,c.cInvName,rs1.cPOID,rs1.cfree1,rs1.cInvCode,rs1.cBatch " +
                                     "        ) b on r.cBatch = b.cBatch and b.cInvCode=r.cInvCode  " +
                                     "    group by b.cVenName,b.cInvName,b.cPOID,b.cfree1";