class ProjectDao extends BaseDao {

    public List<Project> getProjectsListByLikeName(String name) throws SQLException {
        StringBuffer sql = new StringBuffer("SELECT id, app_id, name, namespace,dal_group_id,dal_config_name,update_user_no,update_time FROM project");
        if (StringUtils.isNotBlank(name)) {
            sql.append(" WHERE name like '" + name + "%' limit 10");
        } else {
            sql.append(" limit 10");
        }
        return this.queryBySql(sql.toString(), Project.class);
    }

}