class AppGroupDao extends BaseDao {

    public Long getCountByIdAndName(Long id, String name) throws SQLException {
        String sql = "SELECT count(1) FROM app_group WHERE name='" + name + "' and id = " + id;
        return this.getCount(sql);
    }

}