From 481eb2249f2886c3a6ea8445820a2ec5f153d4da Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期五, 14 八月 2026 14:19:47 +0800
Subject: [PATCH] 销售报价编辑详情返回规格,辅单位
---
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