|
@@ -0,0 +1,103 @@
|
|
|
+package cn.cslg.pas.novelty;
|
|
|
+
|
|
|
+import cn.cslg.pas.common.dto.DomainFieldDTO;
|
|
|
+import cn.cslg.pas.common.dto.NoveltyProjectDTO.NoveltyMarkDTO;
|
|
|
+import cn.cslg.pas.common.utils.GenerateObjectUtil;
|
|
|
+import cn.cslg.pas.controller.AvoidDesignController;
|
|
|
+import cn.cslg.pas.controller.novelty.NoveltyMarkController;
|
|
|
+import cn.cslg.pas.domain.business.FollowUp;
|
|
|
+import cn.cslg.pas.service.business.AvoidDesignService;
|
|
|
+import cn.cslg.pas.common.utils.Response;
|
|
|
+import org.junit.jupiter.api.Test;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.boot.test.context.SpringBootTest;
|
|
|
+
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Author xiexiang
|
|
|
+ * @Date 2023/12/5
|
|
|
+ */
|
|
|
+@SpringBootTest
|
|
|
+public class NoveltyCompareRecordTests {
|
|
|
+ @Autowired
|
|
|
+ private NoveltyMarkController noveltyMarkController;
|
|
|
+ @Test
|
|
|
+ public void editMark() throws Exception {
|
|
|
+ NoveltyMarkDTO noveltyMarkDTO = new NoveltyMarkDTO();
|
|
|
+ noveltyMarkDTO.setMarkNoteText("测试标注");
|
|
|
+ noveltyMarkDTO.setProjectId(1);
|
|
|
+ noveltyMarkDTO.setPatentNo("CN202420249312.5");
|
|
|
+ noveltyMarkDTO.setRetrieveRecordId(1);
|
|
|
+ Response response = noveltyMarkController.edit(noveltyMarkDTO);
|
|
|
+ System.out.println(response);
|
|
|
+ }
|
|
|
+ @Test
|
|
|
+ public void editMark2() throws Exception {
|
|
|
+ NoveltyMarkDTO noveltyMarkDTO = new NoveltyMarkDTO();
|
|
|
+ noveltyMarkDTO.setId("ZIQHPZIBBmwxCVit3e0h");
|
|
|
+ noveltyMarkDTO.setMarkNoteText("测试标注1");
|
|
|
+ noveltyMarkDTO.setProjectId(1);
|
|
|
+ noveltyMarkDTO.setPatentNo("CN202420249312.5");
|
|
|
+ noveltyMarkDTO.setRetrieveRecordId(1);
|
|
|
+ Response response = noveltyMarkController.edit(noveltyMarkDTO);
|
|
|
+ System.out.println(response);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void editCompareRecord() throws Exception {
|
|
|
+ String json ="{\n" +
|
|
|
+ " \"Id\": \"7fc03caf-c5e7-4f35-b5fe-e40b6817b650\",\n" +
|
|
|
+ " \"id\": null,\n" +
|
|
|
+ " \"patentNo\": \"EP1642661A4\",\n" +
|
|
|
+ " \"isPublic\": false,\n" +
|
|
|
+ " \"markColor\": \"#ff0000\",\n" +
|
|
|
+ " \"markNoteText\": \"123131\",\n" +
|
|
|
+ " \"markType\": 2,\n" +
|
|
|
+ " \"markSelectField\": \"摘要原文\",\n" +
|
|
|
+ " \"markSelectText\": \"e present invention includes the steps of: preparing a rare-earth alloy powder with remanent magnetization; feeding the powder onto a track 22, which is defined by a side surface 22a and a lower surface 22b that is sloped so as\",\n" +
|
|
|
+ " \"markSite\": 55,\n" +
|
|
|
+ " \"publicScope\": 1,\n" +
|
|
|
+ " \"createFrom\": \"1\",\n" +
|
|
|
+ " \"projectId\": \"5341\",\n" +
|
|
|
+ " \"patentTitle\": \"Process and system for producing granulation powder of rare earth alloy and process for producing sintered object of rare earth alloy\"\n" +
|
|
|
+ "}";
|
|
|
+
|
|
|
+ NoveltyMarkDTO noveltyMarkDTO = new NoveltyMarkDTO();
|
|
|
+ noveltyMarkDTO.setMarkNoteText("测试标注");
|
|
|
+ noveltyMarkDTO.setProjectId(1);
|
|
|
+
|
|
|
+ noveltyMarkDTO.setRetrieveRecordId(1);
|
|
|
+ Response response = noveltyMarkController.edit(noveltyMarkDTO);
|
|
|
+ System.out.println(response);
|
|
|
+ }
|
|
|
+ @Test
|
|
|
+ public void eidtCompareRecord2() throws Exception {
|
|
|
+ NoveltyMarkDTO noveltyMarkDTO = new NoveltyMarkDTO();
|
|
|
+ noveltyMarkDTO.setId("ZIQHPZIBBmwxCVit3e0h");
|
|
|
+ noveltyMarkDTO.setMarkNoteText("测试标注1");
|
|
|
+ noveltyMarkDTO.setProjectId(1);
|
|
|
+ noveltyMarkDTO.setPatentNo("CN202420249312.5");
|
|
|
+ noveltyMarkDTO.setRetrieveRecordId(1);
|
|
|
+ Response response = noveltyMarkController.edit(noveltyMarkDTO);
|
|
|
+ System.out.println(response);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void testUpdate() {
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void testGet() throws Exception {
|
|
|
+ Integer gen = 2;
|
|
|
+ Integer size = 1;
|
|
|
+ Integer a = gen >= size ? size : gen;
|
|
|
+ System.out.println(a);
|
|
|
+
|
|
|
+ }
|
|
|
+}
|