|
|
|
@ -139,11 +139,13 @@ public class AdminGoodsController extends BaseController { |
|
|
|
|
|
|
|
/** |
|
|
|
* 筛选不同类型的商品排名 |
|
|
|
* @param type |
|
|
|
* @param rejson 接收客户端发送过来的json |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@PostMapping("/rankingList") |
|
|
|
public JSONObject rankingList(@RequestParam(value = "type",defaultValue = "1") String type){ |
|
|
|
public JSONObject rankingList(@RequestBody String rejson){ |
|
|
|
JSONObject request=JSONObject.parseObject(rejson); |
|
|
|
String type = request.getString("type"); |
|
|
|
int itype = Integer.valueOf(type); |
|
|
|
List retlist = goodsService.getMapDataByTyep(itype); |
|
|
|
jsonObject.put("data",retlist); |
|
|
|
|