瀏覽代碼

推理配置

zhaops 5 年之前
父節點
當前提交
94635e6564

+ 30 - 20
aipt-service/src/main/java/com/diagbot/entity/PushSet.java

@@ -52,9 +52,9 @@ public class PushSet implements Serializable {
     private String modifier;
 
     /**
-     * 推理聚焦位置
+     * 推理模式
      */
-    private Integer focus;
+    private Integer mode;
 
     /**
      * 配置名称
@@ -80,6 +80,7 @@ public class PushSet implements Serializable {
     public void setId(Long id) {
         this.id = id;
     }
+
     public String getIsDeleted() {
         return isDeleted;
     }
@@ -87,6 +88,7 @@ public class PushSet implements Serializable {
     public void setIsDeleted(String isDeleted) {
         this.isDeleted = isDeleted;
     }
+
     public LocalDateTime getGmtCreate() {
         return gmtCreate;
     }
@@ -94,6 +96,7 @@ public class PushSet implements Serializable {
     public void setGmtCreate(LocalDateTime gmtCreate) {
         this.gmtCreate = gmtCreate;
     }
+
     public LocalDateTime getGmtModified() {
         return gmtModified;
     }
@@ -101,6 +104,7 @@ public class PushSet implements Serializable {
     public void setGmtModified(LocalDateTime gmtModified) {
         this.gmtModified = gmtModified;
     }
+
     public String getCreator() {
         return creator;
     }
@@ -108,6 +112,7 @@ public class PushSet implements Serializable {
     public void setCreator(String creator) {
         this.creator = creator;
     }
+
     public String getModifier() {
         return modifier;
     }
@@ -115,13 +120,15 @@ public class PushSet implements Serializable {
     public void setModifier(String modifier) {
         this.modifier = modifier;
     }
-    public Integer getFocus() {
-        return focus;
+
+    public Integer getMode() {
+        return mode;
     }
 
-    public void setFocus(Integer focus) {
-        this.focus = focus;
+    public void setMode(Integer mode) {
+        this.mode = mode;
     }
+
     public String getName() {
         return name;
     }
@@ -129,6 +136,7 @@ public class PushSet implements Serializable {
     public void setName(String name) {
         this.name = name;
     }
+
     public String getCode() {
         return code;
     }
@@ -136,6 +144,7 @@ public class PushSet implements Serializable {
     public void setCode(String code) {
         this.code = code;
     }
+
     public String getValue() {
         return value;
     }
@@ -143,6 +152,7 @@ public class PushSet implements Serializable {
     public void setValue(String value) {
         this.value = value;
     }
+
     public String getRemark() {
         return remark;
     }
@@ -154,17 +164,17 @@ public class PushSet implements Serializable {
     @Override
     public String toString() {
         return "PushSet{" +
-            "id=" + id +
-            ", isDeleted=" + isDeleted +
-            ", gmtCreate=" + gmtCreate +
-            ", gmtModified=" + gmtModified +
-            ", creator=" + creator +
-            ", modifier=" + modifier +
-            ", focus=" + focus +
-            ", name=" + name +
-            ", code=" + code +
-            ", value=" + value +
-            ", remark=" + remark +
-        "}";
-    }
-}
+                "id=" + id +
+                ", isDeleted=" + isDeleted +
+                ", gmtCreate=" + gmtCreate +
+                ", gmtModified=" + gmtModified +
+                ", creator=" + creator +
+                ", modifier=" + modifier +
+                ", mode=" + mode +
+                ", name=" + name +
+                ", code=" + code +
+                ", value=" + value +
+                ", remark=" + remark +
+                "}";
+    }
+}

+ 4 - 4
aipt-service/src/main/java/com/diagbot/facade/PushSetFacade.java

@@ -30,16 +30,16 @@ public class PushSetFacade extends PushSetServiceImpl {
      * @return
      */
     public PushSetDTO getPushSet(PushSetVO pushSetVO) {
-        if (StringUtil.isNotBlank(pushSetVO.getFocus())) {
-            throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "请输入推理聚焦位置");
+        if (StringUtil.isNotBlank(pushSetVO.getMode())) {
+            throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "请输入推理模式");
         }
         PushSetDTO pushSetDTO = new PushSetDTO();
         QueryWrapper<PushSet> pushSetQueryWrapper = new QueryWrapper<>();
         pushSetQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
-                .eq("focus", pushSetVO.getFocus());
+                .eq("mode", pushSetVO.getMode());
         List<PushSet> pushSetList = this.list(pushSetQueryWrapper);
         List<PushSetRetDTO> retPushSetList = BeanUtil.listCopyTo(pushSetList, PushSetRetDTO.class);
         pushSetDTO.setPushSetList(retPushSetList);
         return pushSetDTO;
     }
-}
+}

+ 1 - 1
aipt-service/src/main/java/com/diagbot/vo/PushSetVO.java

@@ -11,5 +11,5 @@ import lombok.Setter;
 @Getter
 @Setter
 public class PushSetVO {
-    private String focus;
+    private String mode;
 }

+ 1 - 1
aipt-service/src/main/java/com/diagbot/web/PushSetController.java

@@ -29,7 +29,7 @@ public class PushSetController {
     private PushSetFacade pushSetFacade;
 
     @ApiOperation(value = "推理配置项[by:zhaops]",
-            notes = "focus: 推理聚焦位置<br>")
+            notes = "mode: 推理模式<br>")
     @PostMapping("/getPushSet")
     @SysLogger("getPushSet")
     RespDTO<PushSetDTO> getPushSet(@RequestBody PushSetVO pushSetVO) {

+ 1 - 1
aipt-service/src/main/resources/mapper/PushSetMapper.xml

@@ -10,7 +10,7 @@
         <result column="gmt_modified" property="gmtModified" />
         <result column="creator" property="creator" />
         <result column="modifier" property="modifier" />
-        <result column="focus" property="focus" />
+        <result column="mode" property="mode" />
         <result column="name" property="name" />
         <result column="code" property="code" />
         <result column="value" property="value" />

+ 1 - 1
data-service/src/main/java/com/diagbot/vo/PushJoinV2VO.java

@@ -11,5 +11,5 @@ import lombok.Setter;
 @Getter
 @Setter
 public class PushJoinV2VO extends PushJoinVO {
-    private String focus;
+    private String mode;
 }

+ 1 - 1
data-service/src/main/java/com/diagbot/vo/PushSetVO.java

@@ -11,5 +11,5 @@ import lombok.Setter;
 @Getter
 @Setter
 public class PushSetVO {
-    private String focus;
+    private String mode;
 }

+ 1 - 1
data-service/src/main/java/com/diagbot/web/PushSetController.java

@@ -29,7 +29,7 @@ public class PushSetController {
     private AiptServiceClient aiptServiceClient;
 
     @ApiOperation(value = "推理配置项[by:zhaops]",
-            notes = "focus: 推理聚焦位置<br>")
+            notes = "mode: 推理模式<br>")
     @PostMapping("/getPushSet")
     @SysLogger("getPushSet")
     RespDTO<PushSetDTO> getPushSet(@RequestBody PushSetVO pushSetVO) {

+ 1 - 1
tran-service/src/main/java/com/diagbot/vo/PushJoinV2VO.java

@@ -11,5 +11,5 @@ import lombok.Setter;
 @Getter
 @Setter
 public class PushJoinV2VO extends PushJoinVO {
-    private String focus;
+    private String mode;
 }