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

根据商品点击量排序

上级 5b0bc6e3
...@@ -38,7 +38,7 @@ public class GoodsTypeController { ...@@ -38,7 +38,7 @@ public class GoodsTypeController {
@RequestMapping("/getGoodsTypeList") @RequestMapping("/getGoodsTypeList")
@GetMapping @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<>(); Map<String,List<StationToGoodsType>> map = new HashMap<>();
List<StationToGoodsType> listStation = new ArrayList<StationToGoodsType>(); List<StationToGoodsType> listStation = new ArrayList<StationToGoodsType>();
List<TbCfGoodstypeEntity> list = tbCfGoodstypeService.queryList(null); List<TbCfGoodstypeEntity> list = tbCfGoodstypeService.queryList(null);
......
...@@ -152,4 +152,48 @@ ...@@ -152,4 +152,48 @@
</foreach> </foreach>
</delete> </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> </mapper>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论