派生自 projectDept/qhighschool

胡仁荣
2023-08-04 2174b22bbbb45284765a23b8189df59583c65d29
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)));
    }
}