| | |
| | | map.put("successCount", successCount); |
| | | |
| | | //获取待处理任务数量 |
| | | int planPendingTaskCount = planService.selectCount(new EntityWrapper<Plan>().eq("director", getUserId()).lt("settle",4)); |
| | | int planPendingTaskCount = planService.selectPendingTaskCount(getUserId()); |
| | | map.put("planPendingTaskCount", planPendingTaskCount); |
| | | int priOnlinePendingTaskCount = priOnline2Service.selectCount(new EntityWrapper<PriOnline2>().eq("member_id", getUserId()).lt("settle",2)); |
| | | map.put("priOnlinePendingTaskCount", priOnlinePendingTaskCount); |
| | |
| | | }else if (user.getRoleId()<3){ |
| | | item="true2"; |
| | | } |
| | | }catch (Exception e){ |
| | | }catch (Exception ignored){ } |
| | | return R.ok(item); |
| | | } |
| | | |
| | | @RequestMapping("/dashboard/user/id/popup/auth") |
| | | public R popupUserId(String token) { |
| | | Long item = 0L; |
| | | if (Cools.isEmpty(token)){ |
| | | return R.ok(item); |
| | | } |
| | | try{ |
| | | User user = getUser(token); |
| | | if (Cools.isEmpty(user) || Cools.isEmpty(user.getId())){ |
| | | return R.ok(item); |
| | | } |
| | | item = user.getId(); |
| | | }catch (Exception ignored){ } |
| | | return R.ok(item); |
| | | } |
| | | |