class ProjectDao extends BaseDao {

    public Project getProjectByAppId(String appId) throws SQLException {
        String sql = "SELECT id, name, namespace,dal_group_id,dal_config_name,update_user_no,app_id,token,update_time FROM project WHERE app_id = '" + appId + "' limit 1";
        List<Project> list = this.queryBySql(sql, Project.class);
        return CollectionUtils.isNotEmpty(list) ? list.get(0) : null;
    }

}