|
@@ -1,5 +1,6 @@
|
|
|
package restcontroller.sale.promotion;
|
|
|
|
|
|
+import beans.Item.Item;
|
|
|
import beans.customscheme.CustomScheme;
|
|
|
import beans.salearea.SaleArea;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
@@ -46,7 +47,7 @@ public class promotion extends Controller {
|
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
|
Rows rows = dbConnect.runSqlQuery(sqlFactory);
|
|
|
//默认商品图片
|
|
|
- Rows defaultImageRows = getAttachmentUrl("system", (long) 1, "defaultImage");
|
|
|
+ Rows defaultImageRows = Item.getItemdefaultImage(this);
|
|
|
//附件
|
|
|
ArrayList<Long> ids = rows.toArrayList("sa_promotionid", new ArrayList<>());
|
|
|
RowsMap attRowsMap = getAttachmentUrl("sa_promotion", ids);
|
|
@@ -149,7 +150,7 @@ public class promotion extends Controller {
|
|
|
|
|
|
ArrayList ids = rows.toArrayList("itemid", new ArrayList<>());
|
|
|
//默认商品图片
|
|
|
- Rows defaultImageRows = getAttachmentUrl("system", (long) 1, "defaultImage");
|
|
|
+ Rows defaultImageRows = Item.getItemdefaultImage(this);
|
|
|
// 附件
|
|
|
RowsMap attRowsMap = getAttachmentUrl("plm_item", ids);
|
|
|
//商品领域
|
|
@@ -213,7 +214,7 @@ public class promotion extends Controller {
|
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
|
Rows rows = dbConnect.runSqlQuery(sqlFactory);
|
|
|
//默认商品图片
|
|
|
- Rows defaultImageRows = getAttachmentUrl("system", (long) 1, "defaultImage");
|
|
|
+ Rows defaultImageRows = Item.getItemdefaultImage(this);
|
|
|
//附件
|
|
|
ArrayList<Long> ids = rows.toArrayList("sa_promotionid", new ArrayList<>());
|
|
|
RowsMap attRowsMap = getAttachmentUrl("sa_promotion", ids);
|
|
@@ -303,7 +304,7 @@ public class promotion extends Controller {
|
|
|
|
|
|
ArrayList ids = rows.toArrayList("itemid", new ArrayList<>());
|
|
|
//默认商品图片
|
|
|
- Rows defaultImageRows = getAttachmentUrl("system", (long) 1, "defaultImage");
|
|
|
+ Rows defaultImageRows = Item.getItemdefaultImage(this);
|
|
|
// 附件
|
|
|
RowsMap attRowsMap = getAttachmentUrl("plm_item", ids);
|
|
|
//商品领域
|