From e2f137fae252c18afff4fe7ea0c6cb6c84248f5f Mon Sep 17 00:00:00 2001 From: HuangHuiKang Date: Thu, 12 Mar 2026 14:25:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=B7=BB=E5=8A=A0=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=8A=B6=E6=80=81=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/admin/management/vo/ManagementPageReqVO.java | 3 +++ .../cus/controller/admin/management/vo/ManagementRespVO.java | 5 +++++ .../module/cus/dal/dataobject/management/ManagementDO.java | 5 ++++- .../module/cus/dal/mysql/management/ManagementMapper.java | 1 + 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/yudao-module-customer/src/main/java/cn/iocoder/yudao/module/cus/controller/admin/management/vo/ManagementPageReqVO.java b/yudao-module-customer/src/main/java/cn/iocoder/yudao/module/cus/controller/admin/management/vo/ManagementPageReqVO.java index 4d49bf0..34baa97 100644 --- a/yudao-module-customer/src/main/java/cn/iocoder/yudao/module/cus/controller/admin/management/vo/ManagementPageReqVO.java +++ b/yudao-module-customer/src/main/java/cn/iocoder/yudao/module/cus/controller/admin/management/vo/ManagementPageReqVO.java @@ -69,4 +69,7 @@ public class ManagementPageReqVO extends PageParam { @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) private LocalDateTime[] createTime; + @Schema(description = "状态") + private Integer status; + } \ No newline at end of file diff --git a/yudao-module-customer/src/main/java/cn/iocoder/yudao/module/cus/controller/admin/management/vo/ManagementRespVO.java b/yudao-module-customer/src/main/java/cn/iocoder/yudao/module/cus/controller/admin/management/vo/ManagementRespVO.java index ccdbcd4..dceba37 100644 --- a/yudao-module-customer/src/main/java/cn/iocoder/yudao/module/cus/controller/admin/management/vo/ManagementRespVO.java +++ b/yudao-module-customer/src/main/java/cn/iocoder/yudao/module/cus/controller/admin/management/vo/ManagementRespVO.java @@ -1,5 +1,6 @@ package cn.iocoder.yudao.module.cus.controller.admin.management.vo; +import cn.iocoder.yudao.framework.excel.core.convert.DictConvert; import io.swagger.v3.oas.annotations.media.Schema; import lombok.*; import java.util.*; @@ -89,4 +90,8 @@ public class ManagementRespVO { @ExcelProperty("创建时间") private LocalDateTime createTime; + @Schema(description = "状态") + @ExcelProperty(value = "状态", converter = DictConvert.class) + private Integer status; + } \ No newline at end of file diff --git a/yudao-module-customer/src/main/java/cn/iocoder/yudao/module/cus/dal/dataobject/management/ManagementDO.java b/yudao-module-customer/src/main/java/cn/iocoder/yudao/module/cus/dal/dataobject/management/ManagementDO.java index 4bcb290..ea198a7 100644 --- a/yudao-module-customer/src/main/java/cn/iocoder/yudao/module/cus/dal/dataobject/management/ManagementDO.java +++ b/yudao-module-customer/src/main/java/cn/iocoder/yudao/module/cus/dal/dataobject/management/ManagementDO.java @@ -102,5 +102,8 @@ public class ManagementDO extends BaseDO { */ private Long tenantId; - + /** + * 状态值 + */ + private Integer status; } \ No newline at end of file diff --git a/yudao-module-customer/src/main/java/cn/iocoder/yudao/module/cus/dal/mysql/management/ManagementMapper.java b/yudao-module-customer/src/main/java/cn/iocoder/yudao/module/cus/dal/mysql/management/ManagementMapper.java index 5fb10db..fd42c60 100644 --- a/yudao-module-customer/src/main/java/cn/iocoder/yudao/module/cus/dal/mysql/management/ManagementMapper.java +++ b/yudao-module-customer/src/main/java/cn/iocoder/yudao/module/cus/dal/mysql/management/ManagementMapper.java @@ -36,6 +36,7 @@ public interface ManagementMapper extends BaseMapperX { .eqIfPresent(ManagementDO::getDbPort, reqVO.getDbPort()) .likeIfPresent(ManagementDO::getDbUsername, reqVO.getDbUsername()) .eqIfPresent(ManagementDO::getDbPassword, reqVO.getDbPassword()) + .eqIfPresent(ManagementDO::getStatus, reqVO.getStatus()) .betweenIfPresent(ManagementDO::getCreateTime, reqVO.getCreateTime()) .orderByDesc(ManagementDO::getId)); }