From f3948fa31158c7b7dea3b038e01c43ce54c55a1c Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Wed, 14 Apr 2021 11:09:57 +0800 Subject: [PATCH] modify --- src/main/resources/mapper/contract/ContractOrderDao.xml | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/resources/mapper/contract/ContractOrderDao.xml b/src/main/resources/mapper/contract/ContractOrderDao.xml index 4df2c4c..49f2f97 100644 --- a/src/main/resources/mapper/contract/ContractOrderDao.xml +++ b/src/main/resources/mapper/contract/ContractOrderDao.xml @@ -84,11 +84,12 @@ where member_id=#{memberId} and contract_type=2 </select> - <select id="selectFollowOrderCntForWinRate" resultType="java.lang.Integer"> + <select id="selectFollowOrderCntForWinRate" resultType="java.math.BigDecimal"> select count(1) from contract_order a where member_id=#{memberId} - and contract_type=2 and order_type in (3,4) + and contract_type=2 + and closing_time is not null <if test="type!=null and type==1"> and reward_amount > 0 </if> @@ -128,16 +129,17 @@ </select> <select id="selectThirtyTotalCntByMemberId" resultType="java.math.BigDecimal"> - select sum(symbol_cnt)/2 + select count(id) from contract_order where member_id=#{memberId} and contract_type=2 + and closing_time is not null and create_time BETWEEN #{offsetDay} and #{date} </select> <select id="selectThirtyWinCntByMemberId" resultType="java.math.BigDecimal"> - select sum(symbol_cnt)/2 + select count(id) from contract_order where member_id=#{memberId} -- Gitblit v1.9.1