From 1b78157c7dc359a5f109206fab07e1b5dda4a985 Mon Sep 17 00:00:00 2001 From: luyie Date: Wed, 11 Sep 2024 16:38:07 +0800 Subject: [PATCH] =?UTF-8?q?add:=E5=A4=A7=E6=A8=A1=E5=9E=8B=EF=BC=8C?= =?UTF-8?q?=E7=9F=A5=E8=AF=86=E5=BA=93=E6=96=87=E4=BB=B6=E7=AE=A1=E7=90=86?= =?UTF-8?q?=EF=BC=8C=E6=96=87=E4=BB=B6=E5=88=86=E6=AE=B5=EF=BC=8C=E5=85=A5?= =?UTF-8?q?=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maintenance/constants/StoreStatus.java | 32 ++++++++++ .../KnowledgeFileFragmentController.java | 72 ++++++++++++++++++++++ .../controller/KnowledgeFileInfoController.java | 10 ++- .../maintenance/entity/AgentLogEntity.java | 2 +- .../maintenance/entity/KnowledgeFileFragment.java | 46 ++++++++++++++ .../maintenance/entity/KnowledgeFileInfo.java | 16 ++++- .../maintenance/entity/VectorParamEntity.java | 2 +- .../mapper/KnowledgeFileFragmentMapper.java | 11 ++++ .../service/KnowledgeFileFragmentService.java | 14 +++++ .../service/KnowledgeFileInfoService.java | 2 + .../impl/KnowledgeFileFragmentServiceImpl.java | 34 ++++++++++ .../service/impl/KnowledgeFileInfoServiceImpl.java | 17 +++++ .../service/impl/VectorParamServiceImpl.java | 2 + .../hzims/bigmodel/maintenance/vo/IdRequest.java | 16 +++++ 14 files changed, 271 insertions(+), 5 deletions(-) create mode 100644 hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/constants/StoreStatus.java create mode 100644 hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/controller/KnowledgeFileFragmentController.java create mode 100644 hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/KnowledgeFileFragment.java create mode 100644 hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/mapper/KnowledgeFileFragmentMapper.java create mode 100644 hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/KnowledgeFileFragmentService.java create mode 100644 hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/impl/KnowledgeFileFragmentServiceImpl.java create mode 100644 hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/vo/IdRequest.java diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/constants/StoreStatus.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/constants/StoreStatus.java new file mode 100644 index 0000000..b100870 --- /dev/null +++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/constants/StoreStatus.java @@ -0,0 +1,32 @@ +package com.hnac.hzims.bigmodel.maintenance.constants; + +import lombok.Getter; + +/** + * @Author: ypj + * @Date: 2024/9/11 16:16 + */ +@Getter +public enum StoreStatus { + + NOT_STORE(0, "未入库"), + STORED(1, "已入库"), + STORING(2, "入库中"); + + private final int code; + private final String msg; + + StoreStatus(int code, String msg) { + this.code = code; + this.msg = msg; + } + + public static StoreStatus getInstance(int code) { + for (StoreStatus status : StoreStatus.values()) { + if (status.getCode() == code) { + return status; + } + } + return null; + } +} diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/controller/KnowledgeFileFragmentController.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/controller/KnowledgeFileFragmentController.java new file mode 100644 index 0000000..bf97c49 --- /dev/null +++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/controller/KnowledgeFileFragmentController.java @@ -0,0 +1,72 @@ +package com.hnac.hzims.bigmodel.maintenance.controller; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; +import com.hnac.hzims.bigmodel.maintenance.entity.KnowledgeFileFragment; +import com.hnac.hzims.bigmodel.maintenance.service.KnowledgeFileFragmentService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import lombok.AllArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springblade.core.mp.support.Condition; +import org.springblade.core.mp.support.Query; +import org.springblade.core.tool.api.R; +import org.springblade.core.tool.utils.Func; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * @Author: ypj + * @Date: 2024/9/11 11:56 + */ +@RestController +@Slf4j +@RequestMapping("/knowledge/fragment") +@AllArgsConstructor +@Api(value = "知识库文件分片管理", tags = "知识库文件分片管理") +public class KnowledgeFileFragmentController { + private final KnowledgeFileFragmentService knowledgeFileFragmentService; + + @GetMapping("/listPage") + @ApiOperation(value = "分页查询") + @ApiOperationSupport(order = 1) + public R> listPage(Query query, KnowledgeFileFragment req) { + return R.data(knowledgeFileFragmentService.page(Condition.getPage(query), Condition.getQueryWrapper(new KnowledgeFileFragment(), req))); + } + + @GetMapping("/detail") + @ApiOperation(value = "查看详情") + @ApiOperationSupport(order = 2) + public R detail(@RequestParam @ApiParam("主键ID") Long id) { + return R.data(knowledgeFileFragmentService.getById(id)); + } + + @PostMapping("/save") + @ApiOperation(value = "保存") + @ApiOperationSupport(order = 3) + public R save(@RequestBody KnowledgeFileFragment req) { + return R.status(knowledgeFileFragmentService.save(req)); + } + + @PutMapping("/update") + @ApiOperation(value = "编辑") + @ApiOperationSupport(order = 4) + public R update(@RequestBody KnowledgeFileFragment req) { + return R.status(knowledgeFileFragmentService.updateById(req)); + } + + @DeleteMapping("/remove") + @ApiOperation(value = "删除") + @ApiOperationSupport(order = 5) + public R remove(@RequestParam @ApiParam("主键ID,按逗号分隔") String ids) { + return R.status(knowledgeFileFragmentService.removeByIds(Func.toLongList(",", ids))); + } + + @GetMapping("/getByDocId") + @ApiOperation(value = "根据文档ID获取分片,不分页") + public R> getByDocId(@RequestParam @ApiParam("主键ID") Long docId) { + return R.data(knowledgeFileFragmentService.getByDocId(docId)); + } +} diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/controller/KnowledgeFileInfoController.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/controller/KnowledgeFileInfoController.java index e6a7008..5ea94d6 100644 --- a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/controller/KnowledgeFileInfoController.java +++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/controller/KnowledgeFileInfoController.java @@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; import com.hnac.hzims.bigmodel.maintenance.entity.KnowledgeFileInfo; import com.hnac.hzims.bigmodel.maintenance.service.KnowledgeFileInfoService; +import com.hnac.hzims.bigmodel.maintenance.vo.IdRequest; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; @@ -37,7 +38,7 @@ public class KnowledgeFileInfoController { @ApiOperationSupport(order = 1) public R> listPage(Query query, KnowledgeFileInfo req) { return R.data(knowledgeFileInfoService.page(Condition.getPage(query), - Condition.getQueryWrapper(new KnowledgeFileInfo(), req).orderByDesc(KnowledgeFileInfo::getCreateTime))); + Condition.getQueryWrapper(new KnowledgeFileInfo(), req).orderByDesc(KnowledgeFileInfo::getCreateTime))); } @GetMapping("/detail") @@ -74,4 +75,11 @@ public class KnowledgeFileInfoController { public R upload(@ApiParam(value = "上传文件", required = true) @RequestPart("file") MultipartFile file) { return ossClient.putFile(file); } + + @PostMapping("/store") + @ApiOperation(value = "入库") + @ApiOperationSupport(order = 7) + public R store(@RequestBody IdRequest req) { + return R.status(knowledgeFileInfoService.store(req)); + } } diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/AgentLogEntity.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/AgentLogEntity.java index fd1d6dc..2931615 100644 --- a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/AgentLogEntity.java +++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/AgentLogEntity.java @@ -18,7 +18,7 @@ import java.util.Date; * @Date: 2024/9/9 10:38 */ @ApiModel("问题标注") -@TableName("agent_log") +@TableName("gglm_agent_log") @Data public class AgentLogEntity extends TenantEntity implements Serializable { private static final long serialVersionUID = 1L; diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/KnowledgeFileFragment.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/KnowledgeFileFragment.java new file mode 100644 index 0000000..2982ae1 --- /dev/null +++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/KnowledgeFileFragment.java @@ -0,0 +1,46 @@ +package com.hnac.hzims.bigmodel.maintenance.entity; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.springblade.core.mp.support.QueryField; +import org.springblade.core.mp.support.SqlCondition; +import org.springblade.core.tenant.mp.TenantEntity; + +import java.io.Serializable; + +/** + * @Author: ypj + * @Date: 2024/9/11 9:58 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("knowledge_file_fragment") +@ApiModel(value = "知识库文件分片信息",description = "知识库文件分片信息") +public class KnowledgeFileFragment extends TenantEntity implements Serializable { + private static final long serialVersionUID = 1L; + + @ApiModelProperty("文档ID") + @TableField("DOC_ID") + @QueryField(condition = SqlCondition.EQUAL) + private Long docId; + + @ApiModelProperty("文档问题") + @TableField("DOC_QS") + @QueryField(condition = SqlCondition.LIKE) + private String docQs; + + @ApiModelProperty("文档内容") + @TableField("DOC_CONTENT") + @QueryField(condition = SqlCondition.LIKE) + private String docContent; + + @ApiModelProperty("文档页码") + @TableField("DOC_PAGE_INDEX") + @QueryField(condition = SqlCondition.EQUAL) + private Integer docPageIndex; + +} diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/KnowledgeFileInfo.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/KnowledgeFileInfo.java index d3ff16d..a1f6ab2 100644 --- a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/KnowledgeFileInfo.java +++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/KnowledgeFileInfo.java @@ -6,6 +6,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; +import org.springblade.core.mp.support.QueryField; +import org.springblade.core.mp.support.SqlCondition; import org.springblade.core.tenant.mp.TenantEntity; import java.io.Serializable; @@ -16,41 +18,51 @@ import java.io.Serializable; */ @Data @EqualsAndHashCode(callSuper=false) -@TableName("HZIMS_KNOWLEDGE_FILE_INFO") +@TableName("knowledge_file_info") @ApiModel(value = "知识库文件信息",description = "知识库文件信息") public class KnowledgeFileInfo extends TenantEntity implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty("文件名称") + @QueryField(condition = SqlCondition.LIKE) private String name; @ApiModelProperty("文件url") + @QueryField(condition = SqlCondition.LIKE) private String url; @ApiModelProperty("文件大小") + @QueryField(condition = SqlCondition.EQUAL) private Long size; @ApiModelProperty("简介") + @QueryField(condition = SqlCondition.LIKE) private String briefs; @ApiModelProperty("标签") + @QueryField(condition = SqlCondition.LIKE) private String tags; @ApiModelProperty("业务领域") + @QueryField(condition = SqlCondition.EQUAL) private String domain; @ApiModelProperty("权限等级,5个等级") @TableField("AUTHORITY_CLASS") + @QueryField(condition = SqlCondition.EQUAL) private Integer authorityClass; @ApiModelProperty("是否可见,0为不可见,1为可见") + @QueryField(condition = SqlCondition.EQUAL) private Integer visible; - @ApiModelProperty("文件状态,0为未入库,1为已入库") + @ApiModelProperty("文件状态,0为未入库,1为已入库,2为入库中") @TableField("FILE_STATUS") + @QueryField(condition = SqlCondition.EQUAL) private Integer fileStatus; @ApiModelProperty("备注") + @QueryField(condition = SqlCondition.LIKE) private String remark; } diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/VectorParamEntity.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/VectorParamEntity.java index 6553578..72ed2d8 100644 --- a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/VectorParamEntity.java +++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/VectorParamEntity.java @@ -16,7 +16,7 @@ import java.io.Serializable; * @Date: 2024/9/2 14:54 */ @ApiModel("向量参数配置") -@TableName("HZIMS_VECTOR_PARAM") +@TableName("gglm_vector_param") @Data public class VectorParamEntity extends TenantEntity implements Serializable { private static final long serialVersionUID = 1L; diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/mapper/KnowledgeFileFragmentMapper.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/mapper/KnowledgeFileFragmentMapper.java new file mode 100644 index 0000000..0bfe6fd --- /dev/null +++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/mapper/KnowledgeFileFragmentMapper.java @@ -0,0 +1,11 @@ +package com.hnac.hzims.bigmodel.maintenance.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.hnac.hzims.bigmodel.maintenance.entity.KnowledgeFileFragment; + +/** + * @Author: ypj + * @Date: 2024/9/11 10:49 + */ +public interface KnowledgeFileFragmentMapper extends BaseMapper { +} diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/KnowledgeFileFragmentService.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/KnowledgeFileFragmentService.java new file mode 100644 index 0000000..5851b8e --- /dev/null +++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/KnowledgeFileFragmentService.java @@ -0,0 +1,14 @@ +package com.hnac.hzims.bigmodel.maintenance.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.hnac.hzims.bigmodel.maintenance.entity.KnowledgeFileFragment; + +import java.util.List; + +/** + * @Author: ypj + * @Date: 2024/9/11 10:50 + */ +public interface KnowledgeFileFragmentService extends IService { + List getByDocId(Long docId); +} diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/KnowledgeFileInfoService.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/KnowledgeFileInfoService.java index 81f58c9..aa8482f 100644 --- a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/KnowledgeFileInfoService.java +++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/KnowledgeFileInfoService.java @@ -2,10 +2,12 @@ package com.hnac.hzims.bigmodel.maintenance.service; import com.baomidou.mybatisplus.extension.service.IService; import com.hnac.hzims.bigmodel.maintenance.entity.KnowledgeFileInfo; +import com.hnac.hzims.bigmodel.maintenance.vo.IdRequest; /** * @Author: ypj * @Date: 2024/9/10 16:42 */ public interface KnowledgeFileInfoService extends IService { + Boolean store(IdRequest req); } diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/impl/KnowledgeFileFragmentServiceImpl.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/impl/KnowledgeFileFragmentServiceImpl.java new file mode 100644 index 0000000..c1ebffa --- /dev/null +++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/impl/KnowledgeFileFragmentServiceImpl.java @@ -0,0 +1,34 @@ +package com.hnac.hzims.bigmodel.maintenance.service.impl; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.hnac.hzims.bigmodel.maintenance.entity.KnowledgeFileFragment; +import com.hnac.hzims.bigmodel.maintenance.mapper.KnowledgeFileFragmentMapper; +import com.hnac.hzims.bigmodel.maintenance.service.KnowledgeFileFragmentService; +import lombok.AllArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * @Author: ypj + * @Date: 2024/9/11 10:51 + */ +@Service +@Slf4j +@AllArgsConstructor +@DS("hznlm") +public class KnowledgeFileFragmentServiceImpl extends ServiceImpl implements KnowledgeFileFragmentService { + private KnowledgeFileFragmentMapper knowledgeFileFragmentMapper; + + @Override + public List getByDocId(Long docId) { + LambdaQueryWrapper queryWrapper = Wrappers.lambdaQuery() + .eq(KnowledgeFileFragment::getDocId, docId) + .orderByAsc(KnowledgeFileFragment::getDocPageIndex); + return knowledgeFileFragmentMapper.selectList(queryWrapper); + } +} diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/impl/KnowledgeFileInfoServiceImpl.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/impl/KnowledgeFileInfoServiceImpl.java index 9fc1ad7..c367af7 100644 --- a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/impl/KnowledgeFileInfoServiceImpl.java +++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/impl/KnowledgeFileInfoServiceImpl.java @@ -1,9 +1,14 @@ package com.hnac.hzims.bigmodel.maintenance.service.impl; +import com.baomidou.dynamic.datasource.annotation.DS; +import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.hnac.hzims.bigmodel.maintenance.constants.StoreStatus; import com.hnac.hzims.bigmodel.maintenance.entity.KnowledgeFileInfo; import com.hnac.hzims.bigmodel.maintenance.mapper.KnowledgeFileInfoMapper; import com.hnac.hzims.bigmodel.maintenance.service.KnowledgeFileInfoService; +import com.hnac.hzims.bigmodel.maintenance.vo.IdRequest; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; @@ -15,5 +20,17 @@ import org.springframework.stereotype.Service; @Service @Slf4j @AllArgsConstructor +@DS("hznlm") public class KnowledgeFileInfoServiceImpl extends ServiceImpl implements KnowledgeFileInfoService { + private final KnowledgeFileInfoMapper knowledgeFileInfoMapper; + + @Override + public Boolean store(IdRequest req) { + KnowledgeFileInfo knowledgeFileInfo = knowledgeFileInfoMapper.selectById(req.getId()); + + LambdaUpdateWrapper queryWrapper = Wrappers.lambdaUpdate() + .set(KnowledgeFileInfo::getFileStatus, StoreStatus.STORING.getCode()) + .eq(KnowledgeFileInfo::getId, req.getId()); + return this.update(queryWrapper); + } } diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/impl/VectorParamServiceImpl.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/impl/VectorParamServiceImpl.java index 9a9af62..fcb265f 100644 --- a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/impl/VectorParamServiceImpl.java +++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/impl/VectorParamServiceImpl.java @@ -5,6 +5,7 @@ import cn.hutool.http.HttpResponse; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; +import com.baomidou.dynamic.datasource.annotation.DS; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.fasterxml.jackson.core.JsonProcessingException; @@ -30,6 +31,7 @@ import java.util.*; @Service @Slf4j @AllArgsConstructor +@DS("hznlm") public class VectorParamServiceImpl extends ServiceImpl implements VectorParamService { private static final String CLIENT_SIGN = "vector_param"; diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/vo/IdRequest.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/vo/IdRequest.java new file mode 100644 index 0000000..113c03b --- /dev/null +++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/vo/IdRequest.java @@ -0,0 +1,16 @@ +package com.hnac.hzims.bigmodel.maintenance.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * @Author: ypj + * @Date: 2024/9/11 14:16 + */ +@Data +@ApiModel("单id操作请求") +public class IdRequest { + @ApiModelProperty("主键ID") + private Long id; +}