Browse Source

修改发布接口

XMTT 5 years ago
parent
commit
10237f21e4

+ 7 - 0
src/main/java/com/ekexiu/portal/resResult/ResearchResultService.java

@ -148,6 +148,12 @@ public class ResearchResultService {
148 148
            kws = ListUtil.splitTrimExcludeEmpty(subject + "," + industry, ',').toArray(new String[0]);
149 149
            this.keyWordService.refreshResearchResult(con, id, kws);
150 150
        }
151
        Researcher res  = new Researcher();
152
        res.setId(id);
153
        res.setProfessorId(researchResult.getCreator());
154
        res.setName("");
155
        res.setStatus("1");
156
        this.researcherDao.insert(con,res);
151 157
        this.researchResultDao.insert(con, researchResult);
152 158
        return id;
153 159
    }
@ -435,6 +441,7 @@ public class ResearchResultService {
435 441
                re.setId(id);
436 442
                re.setProfessorId(researchers[i].substring(0, 32));
437 443
                re.setName(researchers[i].substring(33));
444
                re.setStatus("0");
438 445
                res[i] = re;
439 446
            }
440 447
            this.researcherDao.insert(con, res);