Browse Source

修改非专利成果导入和添加的接口

XMTT 5 years ago
parent
commit
38d90e11e6

+ 5 - 3
src/main/java/com/ekexiu/portal/resResult/ResearchResultService.java

@ -148,13 +148,14 @@ 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
        this.researchResultDao.insert(con, researchResult);
151
152 152
        Researcher researcher = new Researcher();
153 153
        researcher.setId(id);
154 154
        researcher.setProfessorId(researchResult.getCreator());
155 155
        researcher.setName("");
156 156
        researcher.setStatus("1");
157 157
        this.researcherDao.insert(con,researcher);
158
        this.researchResultDao.insert(con, researchResult);
158 159
        return id;
159 160
    }
160 161
@ -455,13 +456,14 @@ public class ResearchResultService {
455 456
     */
456 457
    @Post
457 458
    @Path("/ass")
458
    public void ass(@JdbcConn(true) Connection con,String id,String researcher)throws SQLException{
459
    public int ass(@JdbcConn(true) Connection con,String id,String researcher)throws SQLException{
459 460
        Researcher res = new Researcher();
460 461
        res.setId(id);
461 462
        res.setProfessorId(researcher.substring(0,32));
462 463
        res.setName("");
463 464
        res.setStatus(researcher.substring(researcher.length()-1));
464
        this.researcherDao.insert(con,res);
465
        return this.researcherDao.insert(con,res);
466
465 467
466 468
    }
467 469