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/votesActivity/checkOrderList.html | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/resources/templates/febs/views/modules/votesActivity/checkOrderList.html b/src/main/resources/templates/febs/views/modules/votesActivity/checkOrderList.html
index baf4bb6..d55926c 100644
--- a/src/main/resources/templates/febs/views/modules/votesActivity/checkOrderList.html
+++ b/src/main/resources/templates/febs/views/modules/votesActivity/checkOrderList.html
@@ -69,7 +69,7 @@
</script>
<script type="text/html" id="orderActivityCheckToolbar">
<div class="layui-btn-container">
- <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" shiro:hasPermission="orderActivity:update" lay-event="checkOrder">手动核销</button>
+ <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" shiro:hasPermission="orderActivity:update" lay-event="checkOrderItem">手动核销</button>
</div>
</script>
@@ -143,7 +143,7 @@
let id = obj.config.id;
let checkStatus = table.checkStatus(id);
- if (event === 'checkOrder') {
+ if (event === 'checkOrderItem') {
let data = checkStatus.data;
// 校验 data 是否为空或未定义
@@ -157,7 +157,7 @@
// 遍历数据,筛选符合条件的订单
for (let i = 0; i < data.length; i++) {
- if (data[i].state !== 1) {
+ if (data[i].state !== 0) {
hasInvalidOrder = true;
break; // 提前中断循环,避免无意义的继续遍历
} else {
--
Gitblit v1.9.1