package com.lyq.action; import java.util.List; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Controller; import com.lyq.model.product.ProductCategory; import com.lyq.model.product.ProductInfo; @Scope("prototype") @Controller("indexAction") public class IndexAction extends BaseAction { private static final long serialVersionUID = 1L; @Override public String execute() throws Exception { // 查询所有类别 String where = "where parent is null"; categories = categoryDao.find(-1, -1, where, null).getList(); // 查询推荐的商品 product_commend = productDao.findCommend(); // 查询销量最高的商品 product_sellCount = productDao.findSellCount(); // 查询人气高的商品 product_clickcount = productDao.findClickcount(); return SUCCESS; } // 所有类别 private List<ProductCategory> categories; // 推荐商品 private List<ProductInfo> product_commend; // 销售最好的商品 private List<ProductInfo> product_sellCount; // 人气最高的商品 private List<ProductInfo> product_clickcount; public List<ProductCategory> getCategories() { return categories; } public void setCategories(List<ProductCategory> categories) { this.categories = categories; } public List<ProductInfo> getProduct_commend() { return product_commend; } public void setProduct_commend(List<ProductInfo> productCommend) { product_commend = productCommend; } public List<ProductInfo> getProduct_sellCount() { return product_sellCount; } public void setProduct_sellCount(List<ProductInfo> productSellCount) { product_sellCount = productSellCount; } public List<ProductInfo> getProduct_clickcount() { return product_clickcount; } public void setProduct_clickcount(List<ProductInfo> productClickcount) { product_clickcount = productClickcount; } }

2017143155 LV12
2022年4月26日
lzlzyw LV14
2022年3月24日
wanglinddad LV55
2022年2月9日
dy123123 LV8
2022年1月1日
mwk545924364 LV4
2021年12月10日
178174qasw LV10
2021年8月19日
Wang17539231758 LV11
2020年5月27日
林志勇 LV10
2020年5月16日
邱玉豪 LV7
2020年4月24日
仙女小麋鹿 LV6
2019年12月27日

lyt010628 LV4
2024年7月9日
lihaixin LV2
2024年7月1日
崔新坤
2024年3月5日
暂无贡献等级
Henew168 LV2
2023年11月19日
微信网友_6707371254878208
2023年10月25日
暂无贡献等级
hrbylw LV9
2023年1月28日
111114758 LV2
2022年11月27日
2998919365 LV5
2022年10月28日
zhaoyangwfd LV17
2022年10月18日
绘飛的渔
2022年8月2日
暂无贡献等级