From 565db646d1f2e5ba8e680f97555dd6b18623bbde Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Fri, 21 May 2021 11:33:13 +0800 Subject: [PATCH] modify --- src/main/resources/mapper/otc/OtcOrderDao.xml | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/otc/OtcOrderDao.xml b/src/main/resources/mapper/otc/OtcOrderDao.xml index ad89f48..fbdab7a 100644 --- a/src/main/resources/mapper/otc/OtcOrderDao.xml +++ b/src/main/resources/mapper/otc/OtcOrderDao.xml @@ -52,4 +52,22 @@ select * from otc_order where order_no=#{orderNo} and order_type=#{orderType} </select> + + <select id="selectOrderListWithStatusAndType" resultType="com.xcong.excoin.modules.otc.entity.OtcOrder"> + select * from otc_order + where order_type=#{type} and status=#{status} + </select> + + <select id="selectMemberCntForEntrust" resultType="java.lang.Integer"> + select count(distinct member_id) from otc_order + where entrust_member_id=#{entrustMemberId} and status != 4 and entrust_member_id!=member_id + </select> + + <select id="selectTotalOrderCount" resultType="java.lang.Integer"> + select count(1) from otc_order + where entrust_member_id=#{entrustMemberId} and entrust_member_id!=member_id + <if test="status != null"> + and status #{status} + </if> + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1