From a7fd8b326e5f45b09e3bd220f86c79566f7cba6a Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 21 Jul 2020 13:04:58 +0800 Subject: [PATCH] 20200721 代码提交 --- src/main/resources/mapper/modules/ContractHoldOrderEntityMapper.xml | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/modules/ContractHoldOrderEntityMapper.xml b/src/main/resources/mapper/modules/ContractHoldOrderEntityMapper.xml index 2de6da9..64904a5 100644 --- a/src/main/resources/mapper/modules/ContractHoldOrderEntityMapper.xml +++ b/src/main/resources/mapper/modules/ContractHoldOrderEntityMapper.xml @@ -8,7 +8,7 @@ FROM contract_hold_order s LEFT JOIN member m ON m.id = s.member_id - WHERE + <where> s.member_id IN ( SELECT id @@ -17,7 +17,23 @@ WHERE account_type = '1' ) + <if test="record != null" > + <if test="record.account!=null and record.account!=''"> + and (m.phone = #{record.account} or m.email = #{record.account} or m.invite_id=#{record.account}) + </if> + </if> + </where> + ORDER BY s.create_time DESC + </select> + + <select id="findContractHoldOrderAloneInPage" resultType="com.xcong.excoin.modules.trademanage.entity.ContractHoldOrderEntity"> + SELECT + * + FROM + contract_hold_order s + LEFT JOIN member m ON m.id = s.member_id <where> + FIND_IN_SET('22015141', m.referer_ids) <if test="record != null" > <if test="record.account!=null and record.account!=''"> and (m.phone = #{record.account} or m.email = #{record.account} or m.invite_id=#{record.account}) -- Gitblit v1.9.1