忽略租户概念,作为全局表。
This commit is contained in:
@@ -59,6 +59,7 @@ public class MybatisPlusConfig {
|
|||||||
ignoreTables.add("tenant"); // 租户表本身
|
ignoreTables.add("tenant"); // 租户表本身
|
||||||
ignoreTables.add("industry_tags"); // 行业标签(示例:如认为是公共字典)
|
ignoreTables.add("industry_tags"); // 行业标签(示例:如认为是公共字典)
|
||||||
ignoreTables.add("menu"); // 菜单表(不需要租户隔离)
|
ignoreTables.add("menu"); // 菜单表(不需要租户隔离)
|
||||||
|
ignoreTables.add("ai_prompts"); // AI 提示词全局配置,表无 tenant_id 字段
|
||||||
|
|
||||||
return new TenantLineHandler() {
|
return new TenantLineHandler() {
|
||||||
|
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ public class AiPromptsController {
|
|||||||
@RequestParam(required = false) String sceneCode,
|
@RequestParam(required = false) String sceneCode,
|
||||||
@RequestParam(required = false) String categoryCode,
|
@RequestParam(required = false) String categoryCode,
|
||||||
@RequestParam(required = false) String fieldCode,
|
@RequestParam(required = false) String fieldCode,
|
||||||
|
@RequestParam(required = false) String promptType,
|
||||||
@RequestParam(required = false) String promptKeyword,
|
@RequestParam(required = false) String promptKeyword,
|
||||||
@RequestParam(required = false) String createStartTime,
|
@RequestParam(required = false) String createStartTime,
|
||||||
@RequestParam(required = false) String createEndTime) {
|
@RequestParam(required = false) String createEndTime) {
|
||||||
@@ -109,6 +110,9 @@ public class AiPromptsController {
|
|||||||
if (fieldCode != null && !fieldCode.trim().isEmpty()) {
|
if (fieldCode != null && !fieldCode.trim().isEmpty()) {
|
||||||
q.eq(AiPrompts::getFieldCode, fieldCode);
|
q.eq(AiPrompts::getFieldCode, fieldCode);
|
||||||
}
|
}
|
||||||
|
if (promptType != null && !promptType.trim().isEmpty()) {
|
||||||
|
q.eq(AiPrompts::getPromptType, promptType);
|
||||||
|
}
|
||||||
if (promptKeyword != null && !promptKeyword.trim().isEmpty()) {
|
if (promptKeyword != null && !promptKeyword.trim().isEmpty()) {
|
||||||
q.like(AiPrompts::getPromptText, promptKeyword);
|
q.like(AiPrompts::getPromptText, promptKeyword);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,9 @@ public class AiPrompts implements Serializable {
|
|||||||
@Schema(description = "字段编码")
|
@Schema(description = "字段编码")
|
||||||
private String fieldCode;
|
private String fieldCode;
|
||||||
|
|
||||||
|
@Schema(description = "提示词类型")
|
||||||
|
private String promptType;
|
||||||
|
|
||||||
@Schema(description = "提示词")
|
@Schema(description = "提示词")
|
||||||
private String promptText;
|
private String promptText;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user