Browse Source

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

XMTT 5 years ago
parent
commit
38d90e11e6

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

148
            kws = ListUtil.splitTrimExcludeEmpty(subject + "," + industry, ',').toArray(new String[0]);
148
            kws = ListUtil.splitTrimExcludeEmpty(subject + "," + industry, ',').toArray(new String[0]);
149
            this.keyWordService.refreshResearchResult(con, id, kws);
149
            this.keyWordService.refreshResearchResult(con, id, kws);
150
        }
150
        }
151
        this.researchResultDao.insert(con, researchResult);
151
152
        Researcher researcher = new Researcher();
152
        Researcher researcher = new Researcher();
153
        researcher.setId(id);
153
        researcher.setId(id);
154
        researcher.setProfessorId(researchResult.getCreator());
154
        researcher.setProfessorId(researchResult.getCreator());
155
        researcher.setName("");
155
        researcher.setName("");
156
        researcher.setStatus("1");
156
        researcher.setStatus("1");
157
        this.researcherDao.insert(con,researcher);
157
        this.researcherDao.insert(con,researcher);
158
        this.researchResultDao.insert(con, researchResult);
158
        return id;
159
        return id;
159
    }
160
    }
160
161
455
     */
456
     */
456
    @Post
457
    @Post
457
    @Path("/ass")
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
        Researcher res = new Researcher();
460
        Researcher res = new Researcher();
460
        res.setId(id);
461
        res.setId(id);
461
        res.setProfessorId(researcher.substring(0,32));
462
        res.setProfessorId(researcher.substring(0,32));
462
        res.setName("");
463
        res.setName("");
463
        res.setStatus(researcher.substring(researcher.length()-1));
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