提交 c8faf645 authored 作者: zhengfg's avatar zhengfg

根据商品点击量排序

上级 5b0bc6e3
......@@ -38,7 +38,7 @@ public class GoodsTypeController {
@RequestMapping("/getGoodsTypeList")
@GetMapping
public Map<String,List<StationToGoodsType>> getGoodsTypeList() {
public Map<String,List<StationToGoodsType>> getGoodsTypeList( @RequestParam(required = false) String categoryId) {
Map<String,List<StationToGoodsType>> map = new HashMap<>();
List<StationToGoodsType> listStation = new ArrayList<StationToGoodsType>();
List<TbCfGoodstypeEntity> list = tbCfGoodstypeService.queryList(null);
......
......@@ -152,4 +152,48 @@
</foreach>
</delete>
<!--获取商品独立站-->
<select id="getItemStationList" resultType="com.diaoyun.zion.chinafrica.entity.TbCfStationItemEntity">
select `item_id`,
`item_code`,
`item_name`,
`item_brief`,
`item_category`,
`item_price`,
`item_url`,
`item_img`,
`item_num`,
`platform_code`,
`platform_name`,
`enable_flag`,
`create_time`,
`item_categorytwo`,
`item_descrition_id`
from tb_cf_station_item
where enable_flag=1 and item_category = #{categoryId}
order by item_num desc
</select>
<select id="getGoodsTypeList" resultType="com.diaoyun.zion.chinafrica.entity.TbCfStationItemEntity">
select
`item_id`,
`item_code`,
`item_name`,
`item_brief`,
`item_category`,
`item_price`,
`item_url`,
`item_img`,
`item_num`,
`platform_code`,
`platform_name`,
`enable_flag`,
`create_time`,
`item_categorytwo`,
`item_descrition_id`
from tb_cf_station_item
where enable_flag=1 and item_category = #{categoryId} order by item_num desc limit 0,4
</select>
</mapper>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论