From 09d3c4a46e1b67415a716251acea7a1c592c8af7 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 18 八月 2026 09:00:39 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/fix/hsy/20260811' into dev_business

---
 yudao-module-system/src/test/java/cn/iocoder/yudao/module/system/service/notify/NotifyTemplateServiceImplTest.java |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/yudao-module-system/src/test/java/cn/iocoder/yudao/module/system/service/notify/NotifyTemplateServiceImplTest.java b/yudao-module-system/src/test/java/cn/iocoder/yudao/module/system/service/notify/NotifyTemplateServiceImplTest.java
index ba1f98e..46d53d5 100644
--- a/yudao-module-system/src/test/java/cn/iocoder/yudao/module/system/service/notify/NotifyTemplateServiceImplTest.java
+++ b/yudao-module-system/src/test/java/cn/iocoder/yudao/module/system/service/notify/NotifyTemplateServiceImplTest.java
@@ -12,6 +12,7 @@
 
 import jakarta.annotation.Resource;
 import java.util.HashMap;
+import java.util.List;
 import java.util.Map;
 
 import static cn.iocoder.yudao.framework.common.util.date.LocalDateTimeUtils.buildBetweenTime;
@@ -26,7 +27,7 @@
 /**
  * {@link NotifyTemplateServiceImpl} 鐨勫崟鍏冩祴璇曠被
  *
- * @author 鑺嬮亾婧愮爜
+ * @author 瓒呯骇绠$悊鍛�
  */
 @Import(NotifyTemplateServiceImpl.class)
 public class NotifyTemplateServiceImplTest extends BaseDbUnitTest {
@@ -137,6 +138,23 @@
     }
 
     @Test
+    public void testGetNotifyTemplateListByStatus() {
+        // mock 鏁版嵁
+        NotifyTemplateDO dbNotifyTemplate = randomPojo(NotifyTemplateDO.class,
+                o -> o.setStatus(CommonStatusEnum.ENABLE.getStatus()));
+        notifyTemplateMapper.insert(dbNotifyTemplate);
+        notifyTemplateMapper.insert(cloneIgnoreId(dbNotifyTemplate,
+                o -> o.setStatus(CommonStatusEnum.DISABLE.getStatus())));
+
+        // 璋冪敤
+        List<NotifyTemplateDO> list = notifyTemplateService.getNotifyTemplateListByStatus(
+                CommonStatusEnum.ENABLE.getStatus());
+        // 鏂█
+        assertEquals(1, list.size());
+        assertPojoEquals(dbNotifyTemplate, list.get(0));
+    }
+
+    @Test
     public void testGetNotifyTemplate() {
         // mock 鏁版嵁
         NotifyTemplateDO dbNotifyTemplate = randomPojo(NotifyTemplateDO.class);

--
Gitblit v1.9.3