xiaoyong931011
2020-07-14 cfe81b28c817fe4543da6de5fa169ca1e69c7afd
src/main/resources/mapper/modules/ContractOrderMapper.xml
@@ -9,11 +9,22 @@
         contract_order s
      LEFT JOIN member m ON m.id = s.member_id
      <where>
      order_type in (3,4)
      s.order_type IN (3, 4)
      AND s.member_id IN (
         SELECT
            id
         FROM
            member
         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 test="record.closingType!=null and record.closingType!=''">
                    and s.closing_type = #{record.closingType}
                </if>
            </if>
      </where>   
      order by s.order_no DESC,s.create_time asc