From 8e6989a4472063a2edb5e63c16610ccf8450a562 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Tue, 01 Aug 2023 23:07:15 +0800
Subject: [PATCH] 商品、订单
---
src/main/resources/mapper/dapp/DappMemberDao.xml | 61 ++++++++++++++++++++++++++++++
1 files changed, 61 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/dapp/DappMemberDao.xml b/src/main/resources/mapper/dapp/DappMemberDao.xml
index 457c34b..2ecc2c5 100644
--- a/src/main/resources/mapper/dapp/DappMemberDao.xml
+++ b/src/main/resources/mapper/dapp/DappMemberDao.xml
@@ -23,6 +23,9 @@
<if test="record.accountStatus != null">
and a.account_status = #{record.accountStatus}
</if>
+ <if test="record.accountType != null and record.accountType != ''">
+ and a.account_type = #{record.accountType}
+ </if>
<if test="record.changeAble != null">
and a.change_able = #{record.changeAble}
</if>
@@ -191,6 +194,7 @@
a.invite_id inviteId,
a.account_type accountType,
a.active_status activeStatus,
+ a.node_type nodeType,
b.ausd_amount ausdAmount,
b.nft_devote nftDevote,
b.amount amount,
@@ -248,4 +252,61 @@
select * from dapp_member
where node_type = 1
</select>
+
+ <select id="selectAddress" resultType="java.lang.String">
+ select
+ address
+ from dapp_member where active_status = 1
+ </select>
+
+ <select id="selectMallGoodsListQueryInPage" resultType="cc.mrbird.febs.dapp.vo.MallGoodsListVo">
+ select
+ a.*
+ from mall_goods a
+ where a.is_sale = 1
+ group by a.id
+ order by a.sort_cnt asc
+ </select>
+
+ <select id="selectMallOrderListQueryInPage" resultType="cc.mrbird.febs.dapp.vo.MallOrderListVo">
+ select a.*
+ from mall_order_info a
+ <where>
+ a.member_id = #{record.memberId}
+ <if test="record != null">
+ <if test="record.status != null and record.status != ''">
+ and a.status = #{record.status}
+ </if>
+ </if>
+ </where>
+ order by a.create_time desc
+ </select>
+
+ <select id="selectMallOrderListVoById" resultType="cc.mrbird.febs.dapp.vo.MallOrderListVo">
+ select a.*
+ from mall_order_info a
+ where id = #{orderId}
+ order by a.create_time desc
+ </select>
+
+ <select id="selectMallOrderItemVoByOrderId" resultType="cc.mrbird.febs.dapp.vo.MallOrderItemVo">
+ select a.*
+ from mall_order_item a
+ where orderId = #{orderId}
+ </select>
+
+ <select id="selectMallGoodsListVoById" resultType="cc.mrbird.febs.dapp.vo.MallGoodsListVo">
+ select
+ a.*
+ from mall_goods a
+ where a.id = #{goodsId}
+ </select>
+
+ <select id="selectInviteLeft" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity">
+ select * from dapp_member where invite_left = #{inviteId}
+ </select>
+
+ <select id="selectInviteRight" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity">
+ select * from dapp_member where invite_right = #{inviteId}
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1