Browse Source

促销活动优化

hu 2 năm trước cách đây
mục cha
commit
0a1956bb78

+ 1 - 1
src/custom/restcontroller/sale/promotion/SQL/促销方案列表查询.sql

@@ -52,7 +52,7 @@ from (SELECT t1.promnum,
                      where t1.siteid = t2.siteid
                        and t1.sa_promotionid = t2.sa_promotionid
                        and t2.sys_enterpriseid = $sys_enterpriseid$
-                       and if(t2.islimit=1,t2.saledamount<t2.limitamount,1=1)))
+                       and if(t2.islimit=1,t2.saledamount<t2.limitamount,1=1))
               OR NOT EXISTS(SELECT *
                             FROM sa_promotion_auth
                             WHERE sa_promotionid = t1.sa_promotionid AND siteid = t1.siteid))