|  |  |  | 
|---|
|  |  |  | package com.matrix.system.hive.statistics; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.matrix.core.constance.MatrixConstance; | 
|---|
|  |  |  | import com.matrix.core.pojo.AjaxResult; | 
|---|
|  |  |  | import com.matrix.core.pojo.PaginationVO; | 
|---|
|  |  |  | import com.matrix.core.tools.WebUtil; | 
|---|
|  |  |  | import com.matrix.system.common.bean.SysUsers; | 
|---|
|  |  |  | import com.matrix.system.common.constance.AppConstance; | 
|---|
|  |  |  | import com.matrix.system.hive.bean.AchieveNew; | 
|---|
|  |  |  | import com.matrix.system.hive.service.AchieveNewService; | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
|---|
|  |  |  | 
|---|
|  |  |  | @RequestMapping(value = "/vipConsumeStatistics") | 
|---|
|  |  |  | @ResponseBody | 
|---|
|  |  |  | public AjaxResult vipConsumeStatistics(AchieveNew achieveNew, PaginationVO pageVo) { | 
|---|
|  |  |  | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); | 
|---|
|  |  |  | if(!AppConstance.ZONGDIAN.equals(sysUsers.getShopName())){ | 
|---|
|  |  |  | achieveNew.setShopId(sysUsers.getShopId()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | List<AchieveNew> list = achieveNewService.findVipConsumeStatisticsList(achieveNew, pageVo); | 
|---|
|  |  |  | int total = achieveNewService.findVipConsumeStatisticsTotal(achieveNew); | 
|---|
|  |  |  | return AjaxResult.buildSuccessInstance(list, total); | 
|---|