Commit ae468530 by 何文超

bugfix

parent bc7edf13
......@@ -13,6 +13,7 @@ import com.alibaba.fastjson.JSONObject;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.commons.util.EntityUtil;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.goods.api.dto.GoodsCordDTO;
import com.gic.goods.api.dto.SpecCordDTO;
import com.gic.goods.api.service.CordApiService;
import com.gic.goods.api.util.Constant;
......@@ -26,6 +27,7 @@ import com.gic.search.business.api.dto.ESResponseQueryBatchDTO;
import com.gic.search.business.api.service.EsBusinessOperaApiService;
import com.gic.search.business.api.utils.QueryConditionAssemblyUtil;
import com.gic.widget.screening.api.service.EsScreeningSearchService;
import com.google.common.base.Joiner;
/**
* 商城装修选择器
......@@ -77,8 +79,14 @@ public class AppletConfigGoodsController {
Long areaId = shopDTOServiceResponse.getResult().getAreaId();
JSONObject cordJSON = null;
if (cordId != null) {
ServiceResponse<List<GoodsCordDTO>> serviceResponse = cordApiService.listChildAll(cordId);
List<Long> cordList = new ArrayList<>();
for (GoodsCordDTO goodsCord : serviceResponse.getResult()) {
cordList.add(goodsCord.getSpecCordId());
}
cordList.add(cordId);
cordJSON = QueryConditionAssemblyUtil.createSimpleQueryNode("cordId",
OperateEnum.OPERATE_CONTAIN, search);
OperateEnum.OPERATE_CONTAIN, Joiner.on(" ").join(cordList));
}
ServiceResponse<ESResponseQueryBatchDTO> serviceResponse = searchGoods(currentPage, pageSize, areaId, search,
Constant.CHANNEL_CODE_MALL, cordJSON);
......
......@@ -30,6 +30,7 @@ public class MallGoodsCordVO {
/**
* 父级分类ID
*/
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Long specParentId;
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment