From 9ee5d996a6537121aad58c46adb066c82381fa1c Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Thu, 24 Feb 2022 15:31:58 +0800 Subject: [PATCH] 20222223 --- src/main/resources/mapper/walletCoinOrder/ZhiYaRecordDao.xml | 22 +++++++++++++++++++++- 1 files changed, 21 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/walletCoinOrder/ZhiYaRecordDao.xml b/src/main/resources/mapper/walletCoinOrder/ZhiYaRecordDao.xml index 4075b09..5c5b215 100644 --- a/src/main/resources/mapper/walletCoinOrder/ZhiYaRecordDao.xml +++ b/src/main/resources/mapper/walletCoinOrder/ZhiYaRecordDao.xml @@ -8,7 +8,27 @@ </select> <select id="selectByMemberIdAndOrderStatus" resultType="com.xcong.excoin.modules.coin.entity.ZhiYaRecordEntity"> - SELECT * FROM zhiya_record a where a.member_id= #{memberId} and a.order_status = #{orderStatus} + SELECT a.* FROM zhiya_record a where a.member_id= #{memberId} and a.order_status = #{orderStatus} + </select> + + <select id="selectByIdAndMemberId" resultType="com.xcong.excoin.modules.coin.entity.ZhiYaRecordEntity"> + SELECT a.* FROM zhiya_record a where a.member_id= #{memberId} and a.id = #{id} + </select> + + <select id="selectByMemberId" resultType="com.xcong.excoin.modules.coin.parameter.vo.ZhiyaInfoVo"> + SELECT a.* FROM zhiya_record a where a.member_id= #{memberId} + </select> + + <select id="selectByMemberIdInPage" resultType="com.xcong.excoin.modules.coin.parameter.vo.ZhiyaInfoVo"> + select * from zhiya_record + <if test="record != null"> + <where> + <if test="record.memberId != null" > + and member_id=#{record.memberId} + </if> + </where> + </if> + order by id desc </select> </mapper> -- Gitblit v1.9.1