派生自 projectDept/qhighschool

胡仁荣
2023-09-25 f6df0f0156a8c5eaf2c5f1935c4838563af85c7e
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)));
    }
}