| | |
| | | } |
| | | } |
| | | |
| | | @GetMapping("list") |
| | | @GetMapping("statusStatistic") |
| | | @ApiOperation("获取工作流-各角色用户对应的工作台数据分类统计") |
| | | public Response<Map<String,Integer>> getPhaseStatistic(){ |
| | | public Response<Map<String,Integer>> getStatusStatistic(){ |
| | | DocUser user = ActionUtil.getUser(); |
| | | Map<String,Integer> map = service.getList(user); |
| | | return new Response().set(1,map); |
| | | Map<String,Integer> map = service.getStatusStatistic(user); |
| | | return new Response<Map<String,Integer>>().set(1,map); |
| | | } |
| | | |
| | | /* |
| | |
| | | * 用户对应的工作台数据分类 |
| | | * @param user |
| | | * @return*/ |
| | | public Map<String, Integer> getList(DocUser user) { |
| | | public Map<String, Integer> getStatusStatistic(DocUser user) { |
| | | Map<String,Integer> map = new HashMap<>(); |
| | | switch (user.getRoleId()){ |
| | | //普通员工 |