|
|
@@ -36,6 +36,10 @@ public class promotionItems extends Controller {
|
|
|
*/
|
|
|
String where = " 1=1 ";
|
|
|
String where1 = " 1=1 ";
|
|
|
+ Long sa_promotionid = content.getLong("sa_promotionid");
|
|
|
+ if (!beans.order.Order.getDefaultIsRepeatValue(siteid, "促销订单")) {
|
|
|
+ where=where+" and t1.itemid not in (select itemid from sa_promotion_items where sa_promotionid="+sa_promotionid+") ";
|
|
|
+ }
|
|
|
if (content.containsKey("where")) {
|
|
|
JSONObject whereObject = content.getJSONObject("where");
|
|
|
if (whereObject.containsKey("condition") && !"".equals(whereObject.getString("condition"))) {
|
|
|
@@ -62,7 +66,7 @@ public class promotionItems extends Controller {
|
|
|
sql = sql.replace("[", "(").replace("]", ")");
|
|
|
where = where + sql;
|
|
|
}
|
|
|
- Long sa_promotionid = content.getLong("sa_promotionid");
|
|
|
+
|
|
|
Rows tradefieldrows = dbConnect.runSqlQuery("select tradefield from sa_promotion where siteid='" + siteid + "' and sa_promotionid=" + sa_promotionid);
|
|
|
JSONArray tradefield = new JSONArray();
|
|
|
if (!tradefieldrows.isEmpty()) {
|