|
@@ -1,13 +1,17 @@
|
|
|
package cn.cslg.pas.novelty;
|
|
|
|
|
|
import cn.cslg.pas.common.dto.DomainFieldDTO;
|
|
|
+import cn.cslg.pas.common.dto.NoveltyProjectDTO.NoveltyCompareRecordDTO;
|
|
|
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.NoveltyCompareRecordController;
|
|
|
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 com.alibaba.fastjson2.JSONObject;
|
|
|
+import com.google.gson.JsonObject;
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
@@ -23,6 +27,8 @@ import java.util.List;
|
|
|
public class NoveltyCompareRecordTests {
|
|
|
@Autowired
|
|
|
private NoveltyMarkController noveltyMarkController;
|
|
|
+ @Autowired
|
|
|
+ private NoveltyCompareRecordController noveltyCompareRecordController;
|
|
|
@Test
|
|
|
public void editMark() throws Exception {
|
|
|
NoveltyMarkDTO noveltyMarkDTO = new NoveltyMarkDTO();
|
|
@@ -66,12 +72,15 @@ public class NoveltyCompareRecordTests {
|
|
|
" \"patentTitle\": \"Process and system for producing granulation powder of rare earth alloy and process for producing sintered object of rare earth alloy\"\n" +
|
|
|
"}";
|
|
|
|
|
|
+
|
|
|
+ NoveltyCompareRecordDTO noveltyCompareRecordDTO =new NoveltyCompareRecordDTO();
|
|
|
+ JSONObject.parseObject(json,NoveltyCompareRecordDTO.class);
|
|
|
NoveltyMarkDTO noveltyMarkDTO = new NoveltyMarkDTO();
|
|
|
noveltyMarkDTO.setMarkNoteText("测试标注");
|
|
|
noveltyMarkDTO.setProjectId(1);
|
|
|
-
|
|
|
+
|
|
|
noveltyMarkDTO.setRetrieveRecordId(1);
|
|
|
- Response response = noveltyMarkController.edit(noveltyMarkDTO);
|
|
|
+ Response response = noveltyCompareRecordController.edit(noveltyCompareRecordDTO);
|
|
|
System.out.println(response);
|
|
|
}
|
|
|
@Test
|