From 319538a86e2a057cf4f5d459a6e1fbcfa5d47fe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Thu, 23 Jul 2026 15:42:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(cms):=20=E6=96=B0=E5=A2=9E=E6=A1=88?= =?UTF-8?q?=E4=BE=8B=E5=88=86=E7=B1=BB=E7=9B=B8=E5=85=B3=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=8F=8A=E6=9F=A5=E8=AF=A2=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 CmsCase 实体中新增 categoryId 和 categoryName 字段 - categoryId 关联 cms_navigation.navigation_id,model 为 case - categoryName 为冗余存储,便于列表展示 - 在 CmsCaseParam 新增 categoryId 查询参数,支持按分类筛选案例 --- src/main/java/com/gxwebsoft/cms/entity/CmsCase.java | 6 ++++++ src/main/java/com/gxwebsoft/cms/param/CmsCaseParam.java | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/src/main/java/com/gxwebsoft/cms/entity/CmsCase.java b/src/main/java/com/gxwebsoft/cms/entity/CmsCase.java index d832d7e..d4fb2c9 100644 --- a/src/main/java/com/gxwebsoft/cms/entity/CmsCase.java +++ b/src/main/java/com/gxwebsoft/cms/entity/CmsCase.java @@ -67,6 +67,12 @@ public class CmsCase implements Serializable { @TableLogic private Integer deleted; + @Schema(description = "案例分类ID(关联 cms_navigation.navigation_id,model=case)") + private Integer categoryId; + + @Schema(description = "案例分类名称(冗余存储,便于列表展示)") + private String categoryName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/cms/param/CmsCaseParam.java b/src/main/java/com/gxwebsoft/cms/param/CmsCaseParam.java index 59d7547..985fd05 100644 --- a/src/main/java/com/gxwebsoft/cms/param/CmsCaseParam.java +++ b/src/main/java/com/gxwebsoft/cms/param/CmsCaseParam.java @@ -34,4 +34,8 @@ public class CmsCaseParam extends BaseParam { @Schema(description = "状态: 1已发布 0已下线") @QueryField(type = QueryType.EQ) private Integer status; + + @Schema(description = "案例分类ID(关联 cms_navigation.navigation_id,model=case)") + @QueryField(type = QueryType.EQ) + private Integer categoryId; }