派生自 projectDept/qhighschool

EricsHu
2023-11-23 bef4f6d51bff03c0512a75f43e79699b7296f1fa
src/main/java/com/qxueyou/scc/user/service/impl/UserService.java
@@ -69,8 +69,12 @@
        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);
@@ -183,7 +187,7 @@
    /**
     * 用户设置手机号
     *
     * @param headPath
     * @param
     * @return
     */
    public Result updateUserInfo(String userId, String mobilePhone) {
@@ -282,4 +286,14 @@
        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)));
    }
}