|
@@ -2,10 +2,12 @@ package cn.cslg.pas.service;
|
|
|
|
|
|
import cn.cslg.pas.common.dto.*;
|
|
|
import cn.cslg.pas.common.model.cronModel.Records;
|
|
|
+import cn.cslg.pas.common.vo.QueryCompareFileVO;
|
|
|
import cn.cslg.pas.common.vo.QueryInventionPointVO;
|
|
|
import cn.cslg.pas.common.vo.TechnicalCaseVO;
|
|
|
import cn.cslg.pas.service.business.NoveltyProjectService;
|
|
|
import cn.cslg.pas.service.business.TechnicalCaseService;
|
|
|
+import cn.cslg.pas.service.novelty.NoveltyCompareLiteratureService;
|
|
|
import org.junit.Test;
|
|
|
import org.junit.runner.RunWith;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -26,6 +28,9 @@ public class NoveltyProjectTest {
|
|
|
@Autowired
|
|
|
private TechnicalCaseService technicalCaseService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private NoveltyCompareLiteratureService noveltyCompareLiteratureService;
|
|
|
+
|
|
|
@Test
|
|
|
public void addNoveltyProject() {
|
|
|
AddNoveltyProjectDTO projectDTO = new AddNoveltyProjectDTO();
|
|
@@ -134,4 +139,45 @@ public class NoveltyProjectTest {
|
|
|
final List<QueryInventionPointVO> inventionPointVOS = technicalCaseService.querySimilarInventionPoint("测试");
|
|
|
System.out.println(inventionPointVOS);
|
|
|
}
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void addCompareFile() {
|
|
|
+ AddCompareFileDTO vo = new AddCompareFileDTO();
|
|
|
+ vo.setCompareLitertureId(234);
|
|
|
+ vo.setRemark("huhuhuhuhuh");
|
|
|
+ vo.setGeneralRemark("yhyhyhyjyjy");
|
|
|
+ vo.setIfEffectinv(true);
|
|
|
+ vo.setTechnicalPoints("yiyiyiyi");
|
|
|
+ final Integer id = noveltyCompareLiteratureService.addCompareFile(vo);
|
|
|
+ System.out.println(id);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void editCompareFile() {
|
|
|
+ AddCompareFileDTO vo = new AddCompareFileDTO();
|
|
|
+ vo.setCompareFileId(6);
|
|
|
+ vo.setCompareLitertureId(0);
|
|
|
+ vo.setRemark("tgtgtgtgtt");
|
|
|
+ vo.setGeneralRemark("gtgtgdgsdfsdfsd");
|
|
|
+ vo.setIfEffectinv(true);
|
|
|
+ vo.setTechnicalPoints("zxzxzxzxxzxxz");
|
|
|
+ final Integer id = noveltyCompareLiteratureService.editCompareFile(vo);
|
|
|
+ System.out.println(id);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void queryCompareFile() {
|
|
|
+ QueryCompareFileDTO vo = new QueryCompareFileDTO();
|
|
|
+ vo.setProjectId(1);
|
|
|
+ vo.setPatentNo("EP1642661A4");
|
|
|
+ final List<QueryCompareFileVO> compareFileVOS = noveltyCompareLiteratureService.queryCompareFile(vo);
|
|
|
+ System.out.println(compareFileVOS);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void delCompareFile() {
|
|
|
+ CompareFileIdDTO vo = new CompareFileIdDTO();
|
|
|
+ vo.setCompareLitertureId(237);
|
|
|
+ noveltyCompareLiteratureService.delCompareFile(vo);
|
|
|
+ }
|
|
|
}
|