企业信息添加资料库库IDs字段

This commit is contained in:
2025-10-09 10:58:15 +08:00
parent 5972cf9966
commit b8a4c06e68
2 changed files with 7 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.gxwebsoft.ai.service.KnowledgeBaseService;
import com.gxwebsoft.common.core.annotation.OperationLog;
import io.swagger.v3.oas.annotations.tags.Tag;
@@ -72,6 +73,9 @@ public class OaCompanyController extends BaseController {
if(StrUtil.isEmpty(oaCompany.getCompanyCode())) {
return fail("单位唯一标识不能为空");
}
if(oaCompanyService.count(new LambdaQueryWrapper<OaCompany>().eq(OaCompany::getCompanyCode, oaCompany.getCompanyCode()))>0) {
return fail("单位唯一标识已存在");
}
if (oaCompanyService.save(oaCompany)) {
try {
//查询知识库

View File

@@ -189,6 +189,9 @@ public class OaCompany implements Serializable {
@Schema(description = "知识库ID")
private String kbId;
@Schema(description = "资料库库IDs")
private String libraryIds; //英文逗号分割
@Schema(description = "创建时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime createTime;