瀏覽代碼

添加分配任务(带筛选) 2022/12/20

lwhhszx 2 年之前
父節點
當前提交
193a68acb2

+ 6 - 1
RMS/src/main/java/cn/cslg/report/controller/FeatureController.java

@@ -52,7 +52,7 @@ public class FeatureController {
     }
     @RequestMapping(value = "/addPatentRight", method = RequestMethod.POST)
     @Operation(summary = "保存权要")
-    public String addPatentRight(@RequestBody List<PatentRightVo>  patentRightVos) throws IOException {
+    public String addPatentRight(@RequestBody List<PatentRightVo> patentRightVos) throws IOException {
         String res =  featureService.addFeatures(patentRightVos);
         return res;
     }
@@ -63,4 +63,9 @@ public class FeatureController {
         return Response.success(featureService.querySimFeaturePatent(patentVO));
     }
 
+    @RequestMapping(value = "/getSplitMessage", method = RequestMethod.GET)
+    @Operation(summary = "根据专利号和报告ID获得拆分信息")
+    public String getSplitMessage(Integer reportId ,String patentNo) throws IOException {
+        return Response.success(featureService.getSplitMessage(reportId,patentNo));
+    }
 }

+ 36 - 0
RMS/src/main/java/cn/cslg/report/entity/CompareMessage.java

@@ -0,0 +1,36 @@
+package cn.cslg.report.entity;
+
+import cn.cslg.report.common.model.BaseEntity;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * 对比信息表
+ */
+@Data
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = true)
+@TableName(value = "COMPARE_MESSAGE")
+public class CompareMessage extends BaseEntity<CompareMessage> {
+    @Schema(description = "标的说明")
+    @TableField(value = "TARGET_DESCRIPTION")
+    private String targetDescription;
+
+    @Schema(description = "对比说明")
+    @TableField(value = "COMPARE_DESCRIPTION")
+    private String compareDescription;
+
+    @Schema(description = "对比结果")
+    @TableField(value = "COMPARE_RESULT")
+    private String compareResult;
+
+    @Schema(description = "特征ID")
+    @TableField(value = "FEATURE_ID")
+    private Integer featureId;
+
+
+}

+ 13 - 0
RMS/src/main/java/cn/cslg/report/service/business/FeatureService.java

@@ -471,4 +471,17 @@ List<Map<String,Object>> mapList =new ArrayList<Map<String,Object>>();
         return 1;
     }
 
+    @Transactional(rollbackFor = Exception.class)
+    public Map<String,Object> getSplitMessage(Integer reportId,String patentNo) {
+      LambdaQueryWrapper<Features> queryWrapper =new LambdaQueryWrapper<>();
+      queryWrapper.eq(Features::getReportId,reportId)
+                  .eq(Features::getSignPatentNo,patentNo);
+      List<Features> features =this.list(queryWrapper);
+      Map<String,Object> map =new HashMap<>();
+      if(features!=null&& features.size()!=0){
+          map.put("splitBy",features.get(0).getSplitBy());
+          map.put("splitType",features.get(0).getSplitType());
+      }
+        return map;
+    }
 }