From 8dbaa58169feb425785b55427358a1be0b51dfca Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Thu, 10 Mar 2022 16:19:22 +0800 Subject: [PATCH] fix --- src/main/resources/mapper/walletCoinOrder/ZhiYaDao.xml | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/walletCoinOrder/ZhiYaDao.xml b/src/main/resources/mapper/walletCoinOrder/ZhiYaDao.xml index 8cca638..890157a 100644 --- a/src/main/resources/mapper/walletCoinOrder/ZhiYaDao.xml +++ b/src/main/resources/mapper/walletCoinOrder/ZhiYaDao.xml @@ -6,4 +6,8 @@ SELECT * FROM zhi_ya a where a.member_id= #{memberId} </select> + <select id="selectSumRewardByMemberIdAndRecordIdAndType" resultType="long"> + SELECT ifnull(sum(a.reward_amout),0) FROM zhiya_reward a where a.member_id= #{memberId} and a.type= #{type} and a.record_id= #{recordId} + </select> + </mapper> -- Gitblit v1.9.1