class AppGroupDao extends BaseDao {

    public List<AppGroup> getAppGroupsByServerGroupId(Long serverGroupId) throws SQLException {
        String sql = "SELECT id, server_enabled, server_group_id, name, comment, insert_time, update_time FROM app_group where server_group_id = " + serverGroupId;
        return this.queryBySql(sql, AppGroup.class);
    }

}