|
|
@@ -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))
|