| | |
| | | import com.matrix.core.pojo.AjaxResult; |
| | | import com.matrix.core.tools.WebUtil; |
| | | import com.matrix.system.common.bean.SysUsers; |
| | | import com.matrix.system.common.tools.DataAuthUtil; |
| | | import com.matrix.system.hive.bean.SysShopInfo; |
| | | import com.matrix.system.hive.dao.SysShopInfoDao; |
| | | import com.matrix.system.hiveErp.analysUtil.*; |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 到店率 |
| | | * 业务说明: |
| | | * 门店所有客户人次数除以人头数 |
| | | * @param statisticsParam |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/customerEnterRateCompare") |
| | | public @ResponseBody AjaxResult customerEnterRateCompare(StatisticsParamVo statisticsParam) { |
| | | return getAnalysisResult(statisticsParam, new Caculate() { |
| | | @Override |
| | | public Map<String, Integer> exec(List<StatisticsTimeDaoParam> timeSpaceParam, Long shopId) { |
| | | //从员工业绩统计表中,按时间段,门店的维度统计人次 |
| | | return tjVipSumDao.customerEnterRateCompare(timeSpaceParam,shopId); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | |
| | | |
| | | //获取所有门店 |
| | | SysUsers user = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | List<SysShopInfo> shops= shopInfoDao.selectShopInfo(user.getCompanyId()); |
| | | |
| | | List<SysShopInfo> shops=null; |
| | | if(DataAuthUtil.hasAllShopAuth()){ |
| | | shops= shopInfoDao.selectShopInfo(user.getCompanyId()); |
| | | }else{ |
| | | shops=Arrays.asList(shopInfoDao.selectById(user.getShopId())); |
| | | } |
| | | //定义数据项内容 |
| | | List<SeriesVo> series=new ArrayList<>(); |
| | | |