|
@@ -533,7 +533,7 @@ public class promotion extends Controller {
|
|
|
Long sa_promotionid = content.getLong("sa_promotionid");
|
|
|
|
|
|
Rows rows = dbConnect
|
|
|
- .runSqlQuery("select sa_promotionid,status,promnum,promname,type,associationaccountclassid,associationamount,packagetype,eachlimitqty from sa_promotion where sa_promotionid ='"
|
|
|
+ .runSqlQuery("select sa_promotionid,status,promnum,promname,type,associationaccountclassid,associationamount,packagetype,eachlimitqty,authmethod from sa_promotion where sa_promotionid ='"
|
|
|
+ sa_promotionid + "' and siteid='" + siteid + "'");
|
|
|
Rows rowsdetails = dbConnect
|
|
|
.runSqlQuery("select t2.itemno,t2.itemname,ifnull(t1.orderminqty,0) orderminqty, ifnull(t1.orderaddqty,0) orderaddqty from sa_promotion_items t1 left join plm_item t2 on t1.itemid=t2.itemid and t1.siteid=t2.siteid where t1.sa_promotionid ='"
|