From ccbd86bc5f747b748b5bde257a789d748b8cefbb Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Thu, 11 Sep 2025 17:41:35 +0800
Subject: [PATCH] ``` refactor(service): 在设置活动类别名称前增加非空检查在AdminHappyActivityServiceImpl.java中,对happyActivity的categoryId进行了非空检查,并且确认categoryMap中包含该categoryId后,再设置其categoryName。这样可以避免因为空值或不存在的键导致的潜在异常。 ```
---
src/main/resources/templates/febs/views/modules/socialCircle/list.html | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/templates/febs/views/modules/socialCircle/list.html b/src/main/resources/templates/febs/views/modules/socialCircle/list.html
index 033b0d8..5e1e9b7 100644
--- a/src/main/resources/templates/febs/views/modules/socialCircle/list.html
+++ b/src/main/resources/templates/febs/views/modules/socialCircle/list.html
@@ -64,6 +64,15 @@
<input type="checkbox" value={{d.id}} lay-text="展示|隐藏" lay-skin="switch" lay-filter="scStateSwitch">
{{# } }}
</script>
+<script type="text/html" id="socialTypeFormat">
+ {{# if(d.isNormal == 1) { }}
+ <span>普通社区内容</span>
+ {{# }else if(d.isNormal == 2) { }}
+ <span>视频号内容</span>
+ {{# } else { }}
+ <span>-</span>
+ {{# } }}
+</script>
<script type="text/html" id="scToolbar">
<div class="layui-btn-container">
@@ -203,10 +212,11 @@
{type: 'numbers', title: '', width: 80},
{title: '操作', toolbar: '#activityOption', minWidth: 200, align: 'center'},
+ {templet:"#socialTypeFormat", title: '来源', minWidth: 140,align:'left'},
{field: 'name', title: '标题', minWidth: 150,align:'left'},
{field: 'memberName', title: '发布人', minWidth: 150,align:'left'},
{field: 'categoryName', title: '分类', minWidth: 150,align:'left'},
- {field: 'state', title: '状态', templet: '#scStateSwitch', minWidth: 130,align:'center'}
+ {field: 'state', title: '状态', templet: '#scStateSwitch', minWidth: 130,align:'center'},
]]
});
}
--
Gitblit v1.9.1