| | |
| | | System.out.println(user.getOrganizationId()); |
| | | System.out.println(user.getUserId()); |
| | | |
| | | // String hql = "from UserReRoleUser u where deleteFlag is false and userId = ? "; |
| | | // |
| | | // find(hql, CollectionUtils.newList(param.getUserId()), UserReRoleUser.class); |
| | | |
| | | ClsClass objClsClass = this.findUnique("select c from StuStudent t," |
| | | + " ClsClass c where c.classId = t.classId " |
| | | + "ClsClass c where c.classId = t.classId " |
| | | + " and c.orgId = ? and t.userId = ? and t.status = ? order by t.createTime desc", CollectionUtils.newList(user.getOrganizationId(), user.getUserId(), StuStudent.STATUS_ACTIVE), ClsClass.class); |
| | | wrapper.setUser(user); |
| | | wrapper.setOrg(org); |
| | |
| | | /** |
| | | * 用户设置手机号 |
| | | * |
| | | * @param headPath |
| | | * @param |
| | | * @return |
| | | */ |
| | | public Result updateUserInfo(String userId, String mobilePhone) { |
| | |
| | | return findCount("from User where account = ?", CollectionUtils.newList(account)) > 0; |
| | | } |
| | | |
| | | @Override |
| | | public Result countUser() { |
| | | String hql = "from count User where sex=? and deleteFlag is false"; |
| | | return new Result(true,findCount(hql,CollectionUtils.newList(1))); |
| | | } |
| | | @Override |
| | | public Result countUsersex() { |
| | | String hql = "from count User where sex=? and deleteFlag is false"; |
| | | return new Result(true,findCount(hql,CollectionUtils.newList(0))); |
| | | } |
| | | } |