|
|
@@ -72,8 +72,11 @@ public class FdkkSceneEditService {
|
|
|
HotRelation hotRelation = new HotRelation();
|
|
|
hotRelation.setHotId(sid);
|
|
|
hotRelation.setHotType(type);
|
|
|
- hotRelation.setRelationIds(JSONArray.toJSONString(relationIds));
|
|
|
+ if(relationIds !=null && relationIds.size() >0){
|
|
|
+ hotRelation.setRelationIds(JSONArray.toJSONString(relationIds));
|
|
|
+ }
|
|
|
hotRelation.setNum(fdkkHotRequest.getNum());
|
|
|
+ hotRelation.setContent(fdkkHotData.getContent());
|
|
|
hotRelationService.saveOrUpdate(hotRelation);
|
|
|
}
|
|
|
return fdkkResponse;
|
|
|
@@ -116,7 +119,16 @@ public class FdkkSceneEditService {
|
|
|
if(hotRelation == null){
|
|
|
continue;
|
|
|
}
|
|
|
+ tag.put("hotType",hotRelation.getHotType());
|
|
|
+ //0商品,1优惠劵,2第三方跳转,3瀑布流
|
|
|
+ if(hotRelation.getHotType() == 1 || hotRelation.getHotType() == 2){
|
|
|
+ tag.put("hotJumpUrl", hotRelation.getContent());
|
|
|
+ continue;
|
|
|
+ }
|
|
|
String relationIds = hotRelation.getRelationIds();
|
|
|
+ if(StringUtils.isBlank(relationIds)){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
JSONArray jsonArray = JSONObject.parseArray(relationIds);
|
|
|
List<CdfProduct> products = new ArrayList<>();
|
|
|
for (Object o : jsonArray) {
|