From 085d0e9e62e524b7cf0e7b7d8ad3b51a5a7c1e81 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期三, 24 七月 2024 11:01:09 +0800 Subject: [PATCH] Merge branch '2.0' of http://120.76.84.145:10101/gitblit/r/java/IgoTravel into 2.0 --- DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/WithdrawalMapper.xml | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/WithdrawalMapper.xml b/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/WithdrawalMapper.xml index bc36c1f..e047d34 100644 --- a/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/WithdrawalMapper.xml +++ b/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/WithdrawalMapper.xml @@ -33,6 +33,19 @@ withdrawalType as withdrawalType, serialNo as serialNo from t_pub_withdrawal - where flag != 3 and userType = #{userType} and userId = #{uid} and type = #{type} order by insertTime desc limit #{pageNum}, #{size} + where flag != 3 and userType = #{userType} and userId = #{uid} and type = #{type} + <if test="null != state"> + and state = #{state} + </if> + order by insertTime desc limit #{pageNum}, #{size} + </select> + + + + <select id="queryWithdrawalSum" resultType="double"> + select + ifnull(sum(money), 0) as money + from t_pub_withdrawal + where flag != 3 and userType = #{userType} and userId = #{uid} and type = #{type} </select> </mapper> \ No newline at end of file -- Gitblit v1.7.1