From bfa0b11dfbfe5b71e11f4544e688e4d9f325d1b5 Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期一, 09 六月 2025 10:26:51 +0800 Subject: [PATCH] 修改bug和管理后台报表 --- UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/UserRedPacketRecordMapper.xml | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/UserRedPacketRecordMapper.xml b/UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/UserRedPacketRecordMapper.xml index 085f5cb..c479923 100644 --- a/UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/UserRedPacketRecordMapper.xml +++ b/UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/UserRedPacketRecordMapper.xml @@ -56,7 +56,6 @@ select id as id, money as money, - expirationTime as expirationTime, insertTime as insertTime, companyId as companyId, state as state, @@ -93,7 +92,7 @@ from t_user_red_packet_record a left join t_user_activity_redenvelope b on (a.redPacketActivityId = b.id) left join t_user_activity c on (b.userActivityId = c.id) - where a.state = 1 + where a.state != 0 <if test="null != uid"> and a.userId = #{uid} </if> @@ -105,6 +104,6 @@ <select id="queryRemainingAmount" resultType="double"> - select ifnull(sum(remainingAmount), 0) from t_user_red_packet_record where userId = #{uid} + select ifnull(sum(remainingAmount), 0) from t_user_red_packet_record where userId = #{uid} and state = 1 </select> </mapper> \ No newline at end of file -- Gitblit v1.7.1