Commit a7c1077f by 何文超

更新组件

parent 90ebd4b2
......@@ -167,6 +167,9 @@ public class AppletConfigGoodsController extends BaseGoodsController {
@RequestParam(value = "pageSize", defaultValue = "20") Integer pageSize, String search,
Double startPrice, Double endPrice, Integer startStock, Integer endStock, String channelCode) {
JSONObject queryObject = null;
if (StringUtils.isBlank(channelCode)) {
channelCode = Constant.CHANNEL_CODE_MALL;
}
if (startPrice != null) {
queryObject = QueryConditionAssemblyUtil.createSimpleQueryNode("goodsPrice",
OperateEnum.OPERATE_GTE, startPrice);
......@@ -199,7 +202,7 @@ public class AppletConfigGoodsController extends BaseGoodsController {
}
}
ServiceResponse<ESResponseQueryBatchDTO> serviceResponse = searchGoods(currentPage, pageSize, null, search,
Constant.CHANNEL_CODE_MALL, queryObject);
channelCode, queryObject);
if (serviceResponse.isSuccess()) {
return RestResponse.success(serviceResponse.getResult());
}
......
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