|
|
|
@ -70,4 +70,19 @@ public class AdminGoodsController extends BaseController { |
|
|
|
// jsonObject.put("data",goodsDetail);
|
|
|
|
return jsonObject; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 筛选不同类型的商品排名 |
|
|
|
* @param type |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@PostMapping("/rankingList") |
|
|
|
public JSONObject rankingList(@RequestParam(value = "type",defaultValue = "1") String type){ |
|
|
|
int itype = Integer.valueOf(type); |
|
|
|
Map retmap = goodsService.getMapDataByTyep(itype); |
|
|
|
jsonObject.put("data",retmap); |
|
|
|
jsonObject.put("code",200); |
|
|
|
jsonObject.put("msg","成功"); |
|
|
|
return jsonObject; |
|
|
|
} |
|
|
|
} |
|
|
|
|