|
|
@@ -1,6 +1,8 @@
|
|
|
package com.uas.platform.b2c.prod.store.controller;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.uas.platform.b2c.advertise.ad.model.RecommendProduct;
|
|
|
+import com.uas.platform.b2c.advertise.ad.service.RecommendProductService;
|
|
|
import com.uas.platform.b2c.core.config.SysConf;
|
|
|
import com.uas.platform.b2c.core.support.SystemSession;
|
|
|
import com.uas.platform.b2c.core.utils.FastjsonUtils;
|
|
|
@@ -40,13 +42,16 @@ public class StoreInController {
|
|
|
|
|
|
private final StoreInFacade storeInFacade;
|
|
|
|
|
|
+ private final RecommendProductService recommendProductService;
|
|
|
+
|
|
|
private final SysConf sysConf;
|
|
|
|
|
|
@Autowired
|
|
|
- public StoreInController(StoreInService storeService, StoreInFacade storeInFacade, SysConf sysConf) {
|
|
|
+ public StoreInController(StoreInService storeService, StoreInFacade storeInFacade, SysConf sysConf,RecommendProductService recommendProductService) {
|
|
|
this.storeService = storeService;
|
|
|
this.storeInFacade = storeInFacade;
|
|
|
this.sysConf = sysConf;
|
|
|
+ this.recommendProductService = recommendProductService;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -193,4 +198,13 @@ public class StoreInController {
|
|
|
List<String> storeidArray = FastjsonUtils.fromJsonArray(storeids, String.class);
|
|
|
return storeService.getContactInfo(storeidArray);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 当卖家新增或修改产品推荐时,创建或更新产品推荐信息
|
|
|
+ */
|
|
|
+ @RequestMapping(method = RequestMethod.POST, value = "/products//update_batch")
|
|
|
+ public List<RecommendProduct> saveProductsWhenSellerUpdate(String uuid, @RequestBody List<RecommendProduct> productList) {
|
|
|
+ return recommendProductService.saveProductsWhenSellerUpdate(uuid, productList);
|
|
|
+ }
|
|
|
}
|