Przeglądaj źródła

商品组错误修复

沈静伟 4 lat temu
rodzic
commit
0b745ca000

+ 1 - 1
src/rest/openapi/restcontroller/wechatapp/titemgroup/SQL/商品组查询.sql

@@ -16,6 +16,6 @@ from titemgroup t1
        left join titem t3 on t1.fitemno = t3.fitemno and t1.siteid = t3.siteid
        left join tunit t4 on t3.funitid = t4.funitid and t1.siteid = t4.siteid
 where t1.fisused=1 and t1.siteid=$siteid$ and $where$
-	and (exists( select *from tagentauthors where fagentnum=$fagentnum$ and siteid=t1.siteid and (isnull(fsaleclsnum,'')in (select fsaleclsnum from titemgroup_saleclsnum where parentid=t1.titemgroupid)))
+	and (exists( select *from tagentauthors where fagentnum=$fagentnum$ and siteid=t1.siteid and (isnull(fsaleclsnum,'')in (select fsaleclsnum from titemgroup_saleclsnum where fparentid=t1.titemgroupid)))
 		 or exists(select *from tagents where fagentnum=$fagentnum$ and fagentauthors=1 and siteid=t1.siteid))
 and exists(select * from tagents_field where fieldname=t1.fieldname and siteid=t1.siteid and fagentnum=$fagentnum$)

+ 2 - 2
src/rest/openapi/restcontroller/wechatapp/titemgroup/TitemGroup.java

@@ -108,7 +108,7 @@ public class TitemGroup extends Controller {
          */
         SQLFactory saleclsnumsqlFactory = new SQLFactory(this, "ÉÌÆ·×éÓªÏúÀà±ð²éѯ");
         saleclsnumsqlFactory.addParameter("siteid", siteid);
-        saleclsnumsqlFactory.addParameter_in("fitemno", rows.toArray("fgroupnum"));
+        saleclsnumsqlFactory.addParameter_in("fgroupnum", rows.toArray("fgroupnum"));
         RowsMap saleclsnumRowsMap = drpConnect.runSqlQuery(saleclsnumsqlFactory.getSQL()).toRowsMap("fgroupnum");
 
         /**
@@ -220,7 +220,7 @@ public class TitemGroup extends Controller {
          */
         SQLFactory saleclsnumsqlFactory = new SQLFactory(this, "ÉÌÆ·×éÓªÏúÀà±ð²éѯ");
         saleclsnumsqlFactory.addParameter("siteid", siteid);
-        saleclsnumsqlFactory.addParameter_in("fitemno", rows.toArray("fgroupnum"));
+        saleclsnumsqlFactory.addParameter_in("fgroupnum", rows.toArray("fgroupnum"));
         RowsMap saleclsnumRowsMap = drpConnect.runSqlQuery(saleclsnumsqlFactory.getSQL()).toRowsMap("fgroupnum");