From 88dba6b6bac3c3a579f092079ad07ea0b7cb9b89 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 06 Apr 2021 17:06:45 +0800 Subject: [PATCH] 20210406 交易员列表查询 --- src/main/resources/mapper/contract/ContractOrderDao.xml | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/resources/mapper/contract/ContractOrderDao.xml b/src/main/resources/mapper/contract/ContractOrderDao.xml index 730ca5f..18c1f29 100644 --- a/src/main/resources/mapper/contract/ContractOrderDao.xml +++ b/src/main/resources/mapper/contract/ContractOrderDao.xml @@ -88,7 +88,8 @@ 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 count(id)/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 count(id)/2 + select count(id) from contract_order where member_id=#{memberId} -- Gitblit v1.9.1