Commit 942c51f9 by 何文超

bugfix

parent 8a71f79b
...@@ -21,6 +21,7 @@ import org.springframework.web.bind.annotation.GetMapping; ...@@ -21,6 +21,7 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.stream.Collectors; import java.util.stream.Collectors;
...@@ -76,7 +77,7 @@ public class GoodsController extends BaseGoodsController { ...@@ -76,7 +77,7 @@ public class GoodsController extends BaseGoodsController {
//商品信息 //商品信息
List<JSONObject> list = serviceResponse.getResult().getRes(); List<JSONObject> list = serviceResponse.getResult().getRes();
if (CollectionUtils.isEmpty(list)) { if (CollectionUtils.isEmpty(list)) {
return RestResponse.success(serviceResponse.getResult()); return RestResponse.success(Collections.EMPTY_LIST);
} }
//1、获取商品信息 //1、获取商品信息
List<GoodsVO> goodsVOS = Lists.newArrayList(); List<GoodsVO> goodsVOS = Lists.newArrayList();
......
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