From 770c90dd33db8f975db417531686e93e17e5a3a8 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期二, 13 十月 2026 17:38:27 +0800
Subject: [PATCH] 修改bug
---
ruoyi-service/ruoyi-account/src/main/resources/mapper/account/TChargingCardMapper.xml | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/ruoyi-service/ruoyi-account/src/main/resources/mapper/account/TChargingCardMapper.xml b/ruoyi-service/ruoyi-account/src/main/resources/mapper/account/TChargingCardMapper.xml
index 134713b..5bcebaa 100644
--- a/ruoyi-service/ruoyi-account/src/main/resources/mapper/account/TChargingCardMapper.xml
+++ b/ruoyi-service/ruoyi-account/src/main/resources/mapper/account/TChargingCardMapper.xml
@@ -65,6 +65,15 @@
</if>
</select>
+ <select id="countByFullCardNo" resultType="int">
+ SELECT COUNT(1)
+ FROM t_charging_card
+ WHERE full_card_no = #{fullCardNo}
+ <if test="excludeId != null">
+ AND id != #{excludeId}
+ </if>
+ </select>
+
<!-- 人工调账:仍保持"增加不超过上限、扣减不低过 0"的运营约束,并叠加充电锁定条件兜底(V0.2 定稿) -->
<update id="adjustBalance">
UPDATE t_charging_card
--
Gitblit v1.7.1