package com.matrix.system.shopXcx.action; import com.matrix.core.pojo.PaginationVO; import com.matrix.system.hive.action.util.QueryUtil; import com.matrix.system.shopXcx.bean.ShopSku; import com.matrix.system.shopXcx.dao.ShopSkuDao; import com.matrix.system.shopXcx.pojo.SalesStatistics; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import com.matrix.core.pojo.AjaxResult; import org.springframework.beans.factory.annotation.Autowired; import java.util.List; /** * @author jyy * @description 产品规格表 * @date 2019-06-10 10:58 */ @Controller @RequestMapping(value = "admin/shopSku") public class ShopSkuAction { @Autowired private ShopSkuDao shopSkuDao; //记录编辑前的值Before_Edit_Value public static final String BEV = "ShopSku_BEV"; /** * 列表显示 */ @RequestMapping(value = "/showSalesStatistics") public @ResponseBody AjaxResult showList(ShopSku shopSku, PaginationVO pageVo) { QueryUtil.setQueryLimitCom(shopSku); List dataList = shopSkuDao.salesStatistics(shopSku,pageVo); AjaxResult result = new AjaxResult(AjaxResult.STATUS_SUCCESS, dataList, shopSkuDao.selectTotalsalesStatistics(shopSku)); return result; } }