| | |
| | | if (StringUtils.isNotEmpty(areaCode)){ |
| | | aCode=Long.parseLong(areaCode); |
| | | } |
| | | return userService.newIndexData(type, sId,aCode); |
| | | return userService.newIndexData(type, sId,aCode,this.getAppId()); |
| | | } |
| | | |
| | | @ApiOperation(value = "新数据看板:用户占比", response = UserRateVO.class) |
| | |
| | | @GetMapping("/indexData/totalData") |
| | | R newIndexData(@RequestParam(value = "type",required = false) Integer type, |
| | | @RequestParam(value = "type",required = false) Long streetId, |
| | | @RequestParam(value = "areaCode",required = false) Long areaCode); |
| | | @RequestParam(value = "areaCode",required = false) Long areaCode,@RequestParam("appId")String appId); |
| | | |
| | | @GetMapping("/indexData/userRate") |
| | | R userRate(@RequestParam(value = "type",required = false) Integer type, |
| | |
| | | @GetMapping("/indexData/totalData") |
| | | public R indexData(@RequestParam(value = "type",required = false) Integer type, |
| | | @RequestParam(value = "streetId",required = false) Long streetId, |
| | | @RequestParam(value = "areaCode",required = false) Long areaCode){ |
| | | return userService.newIndexData(type,streetId,areaCode); |
| | | @RequestParam(value = "areaCode",required = false) Long areaCode,@RequestParam("appId")String appId){ |
| | | return userService.newIndexData(type,streetId,areaCode,appId); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param streetId 街道id |
| | | * @param areaCode 区县code |
| | | * */ |
| | | R newIndexData(Integer type, Long streetId,Long areaCode); |
| | | R newIndexData(Integer type, Long streetId,Long areaCode,String appid); |
| | | |
| | | /** |
| | | * 用户占比统计 |
| | |
| | | } |
| | | |
| | | @Override |
| | | public R newIndexData(Integer type, Long streetId,Long areaCode) { |
| | | IndexDataKanbanVO indexDataKanbanVO = userDao.selectIndexDataKanban(null); |
| | | public R newIndexData(Integer type, Long streetId,Long areaCode,String appId) { |
| | | IndexDataKanbanVO indexDataKanbanVO = userDao.selectIndexDataKanban(appId); |
| | | IndexDataAnalysisVO vo=new IndexDataAnalysisVO(); |
| | | if (ObjectUtils.isEmpty(type)){ |
| | | //不传默认为所有区县 |