xiaoyong931011
2021-08-12 a5ffab1fcc28ad45a56e376722c162d23742848e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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<SalesStatistics> dataList = shopSkuDao.salesStatistics(shopSku,pageVo);
        AjaxResult result = new AjaxResult(AjaxResult.STATUS_SUCCESS, dataList,
                shopSkuDao.selectTotalsalesStatistics(shopSku));
        return result;
    }
 
 
}