ソースを参照

促销管理删除组功能

hu 3 年 前
コミット
ba62ec4a7c

+ 1 - 1
src/custom/restcontroller/webmanage/sale/promotion/SQL/商品查询.sql

@@ -11,4 +11,4 @@ SELECT
 FROM
 	plm_item t1
 	 LEFT JOIN plm_unit t2 ON t2.unitid = t1.unitid AND t2.siteid = t1.siteid
-	where $where$ and t1.siteid=$siteid$ and ifnull(t1.isonsale,0) =1 and t1.itemid not in (select itemid from sa_promotion_items where sa_promotion_itemgroupid=$sa_promotion_itemgroupid$)
+	where $where$ and t1.siteid=$siteid$ and ifnull(t1.isonsale,0) =1 and t1.itemid not in (select itemid from sa_promotion_items where sa_promotionid=$sa_promotionid$)

+ 2 - 2
src/custom/restcontroller/webmanage/sale/promotion/promotionItems.java

@@ -40,11 +40,11 @@ public class promotionItems extends Controller {
             }
 
         }
-        Long sa_promotion_itemgroupid = content.getLong("sa_promotion_itemgroupid");
+        Long sa_promotionid = content.getLong("sa_promotionid");
 //			String hrid = content.getString("hrid");
         SQLFactory sqlFactory = new SQLFactory(this, "商品查询", pageSize, pageNumber, pageSorting);
         sqlFactory.addParameter_SQL("where", where);
-        sqlFactory.addParameter("sa_promotion_itemgroupid", sa_promotion_itemgroupid);
+        sqlFactory.addParameter("sa_promotionid", sa_promotionid);
         sqlFactory.addParameter("siteid", siteid);
         Rows rows = dbConnect.runSqlQuery(sqlFactory);