Explorar el Código

资源导入查询使用COMP (原使用ORG_NAME)

jiapeng %!s(int64=7) %!d(string=hace) años
padre
commit
91dbc23eeb

+ 1 - 1
src/main/java/com/ekexiu/portal/dao/ResourceTmpDao.java

25
        PageQueryResult<ResourceTmp> queryResult = new PageQueryResult<ResourceTmp>();
25
        PageQueryResult<ResourceTmp> queryResult = new PageQueryResult<ResourceTmp>();
26
        boolean hasKey = null != key;
26
        boolean hasKey = null != key;
27
        StringBuilder sql = new StringBuilder();
27
        StringBuilder sql = new StringBuilder();
28
        sql.append(" WHERE ORG_NAME = ?");
28
        sql.append(" WHERE COMP = ?");
29
        if(hasKey){
29
        if(hasKey){
30
        	sql.append(" AND (NAME LIKE ? OR DOMAIN LIKE ? OR MAJOR_FUNC LIKE ?)");
30
        	sql.append(" AND (NAME LIKE ? OR DOMAIN LIKE ? OR MAJOR_FUNC LIKE ?)");
31
        }
31
        }

+ 2 - 0
src/main/resources/database.sql

1346
-- ----------------------------
1346
-- ----------------------------
1347
ALTER TABLE article_pro ADD PRIMARY KEY (article_id, professor_id);
1347
ALTER TABLE article_pro ADD PRIMARY KEY (article_id, professor_id);
1348

1348

1349
update resource set resource_type='1';
1350