Browse Source

Merge remote-tracking branch 'origin/prod-5.1.3' into prod-5.1.3

zhongwei
haungxing 3 months ago
parent
commit
4a3529c121
  1. 12
      hzims-service-api/inspect-api/src/main/java/com/hnac/hzinfo/inspect/obj/entity/ContentDefinitionEntity.java
  2. 12
      hzims-service-api/inspect-api/src/main/java/com/hnac/hzinfo/inspect/obj/entity/ContentEntity.java
  3. 11
      hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/zhipuai/controller/ZhipuAnalysisInfoController.java
  4. 8
      hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/zhipuai/entity/ZhipuAnalysisInfoEntity.java
  5. 35
      hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/zhipuai/vo/ZhipuAnalysisInfoVO.java

12
hzims-service-api/inspect-api/src/main/java/com/hnac/hzinfo/inspect/obj/entity/ContentDefinitionEntity.java

@ -49,6 +49,18 @@ public class ContentDefinitionEntity extends TenantEntity implements Serializabl
@ApiModelProperty(value = "检测类型子类") @ApiModelProperty(value = "检测类型子类")
private String checkTypeSon; private String checkTypeSon;
/**
* 检测类型子类(多组)
*/
@ApiModelProperty(value = "检测类型子类(多组)")
private String multiCheckTypeSon;
/**
* ai识别分析方式设备或大模型
*/
@ApiModelProperty(value = "ai识别分析方式,设备或大模型")
private String analyserType;
// @JsonSerialize(nullsUsing = NullSerializer.class) // @JsonSerialize(nullsUsing = NullSerializer.class)
// @ApiModelProperty(value = "表针识别,表盘ID") // @ApiModelProperty(value = "表针识别,表盘ID")
// private Long clockId; // private Long clockId;

12
hzims-service-api/inspect-api/src/main/java/com/hnac/hzinfo/inspect/obj/entity/ContentEntity.java

@ -63,6 +63,18 @@ public class ContentEntity extends TenantEntity {
private String checkTypeSon; private String checkTypeSon;
/** /**
* 检测类型子类(多组)
*/
@ApiModelProperty(value = "检测类型子类(多组)")
private String multiCheckTypeSon;
/**
* ai识别分析方式设备或大模型
*/
@ApiModelProperty(value = "ai识别分析方式,设备或大模型")
private String analyserType;
/**
* 表针识别表盘ID * 表针识别表盘ID
*/ */
@JsonSerialize(nullsUsing = NullSerializer.class) @JsonSerialize(nullsUsing = NullSerializer.class)

11
hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/zhipuai/controller/ZhipuAnalysisInfoController.java

@ -16,6 +16,8 @@ import org.springblade.core.tool.utils.Func;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.List;
/** /**
* @Author: ypj * @Author: ypj
* @Date: 2024/8/12 20:22 * @Date: 2024/8/12 20:22
@ -34,7 +36,7 @@ public class ZhipuAnalysisInfoController {
return R.status(analysisInfoService.save(request.toEntity())); return R.status(analysisInfoService.save(request.toEntity()));
} }
@GetMapping("/remove") @DeleteMapping("/remove")
@ApiOperation("批量删除智谱分析信息") @ApiOperation("批量删除智谱分析信息")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
public R<Boolean> remove(@RequestParam @ApiParam("主键ID,按逗号分隔") String ids) { public R<Boolean> remove(@RequestParam @ApiParam("主键ID,按逗号分隔") String ids) {
@ -54,4 +56,11 @@ public class ZhipuAnalysisInfoController {
public R<Boolean> update(@RequestBody @Validated ZhipuAnalysisInfoEntity requestData) { public R<Boolean> update(@RequestBody @Validated ZhipuAnalysisInfoEntity requestData) {
return R.status(analysisInfoService.updateById(requestData)); return R.status(analysisInfoService.updateById(requestData));
} }
@GetMapping("/list")
@ApiOperation("列出智谱分析配置信息")
@ApiOperationSupport(order = 5)
public R<List<ZhipuAnalysisInfoEntity>> list(ZhipuAnalysisInfoEntity requestData) {
return R.data(analysisInfoService.list(Condition.getQueryWrapper(requestData)));
}
} }

8
hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/zhipuai/entity/ZhipuAnalysisInfoEntity.java

@ -38,6 +38,14 @@ public class ZhipuAnalysisInfoEntity extends TenantEntity {
@TableField("REQUEST_CONTENT") @TableField("REQUEST_CONTENT")
private String requestContent; private String requestContent;
@ApiModelProperty(value = "模型交互约束")
@TableField("REQUEST_CONSTRAINS")
private String requestConstrains;
@ApiModelProperty(value = "模型交互返回格式定义")
@TableField("REQUEST_OUTPUT_FORMAT")
private String requestOutputFormat;
@ApiModelProperty(value = "结果解析策略") @ApiModelProperty(value = "结果解析策略")
@TableField("RESULT_STRATEGY") @TableField("RESULT_STRATEGY")
private String resultStrategy; private String resultStrategy;

35
hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/zhipuai/vo/ZhipuAnalysisInfoVO.java

@ -21,40 +21,7 @@ import javax.validation.constraints.NotNull;
@ApiModel(value = "大模型分析信息") @ApiModel(value = "大模型分析信息")
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
public class ZhipuAnalysisInfoVO extends TenantEntity { public class ZhipuAnalysisInfoVO extends ZhipuAnalysisInfoEntity {
@JsonSerialize(using = ToStringSerializer.class)
@ApiModelProperty(value = "主键id")
@TableId(value = "id", type = IdType.ASSIGN_ID)
private Long id;
@ApiModelProperty(value = "策略编码")
@NotNull
private String code;
@ApiModelProperty(value = "策略名称")
private String name;
@ApiModelProperty(value = "调用模型名称")
@NotNull
private String model;
@ApiModelProperty(value = "模型交互内容")
private String requestContent;
@ApiModelProperty(value = "结果解析策略")
private String resultStrategy;
@ApiModelProperty(value = "结果类型")
private String resultType;
@ApiModelProperty(value = "结果查询key值")
private String resultKey;
@ApiModelProperty(value = "结果对比内容")
private String resultCondition;
@ApiModelProperty(value = "对比方式")
private String resultJudgeModel;
public ZhipuAnalysisInfoEntity toEntity() { public ZhipuAnalysisInfoEntity toEntity() {
return BeanUtil.copy(this, ZhipuAnalysisInfoEntity.class); return BeanUtil.copy(this, ZhipuAnalysisInfoEntity.class);

Loading…
Cancel
Save