派生自 projectDept/qhighschool

yn147
2023-09-11 c7fd3b83e25036d1556a426eef0e500d6f434e39
src/main/java/com/qxueyou/scc/user/service/impl/UserService.java
@@ -282,4 +282,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)));
    }
}