xiaoyong931011
2021-03-02 4348e057d9b2894a533ba116e21216610934eef0
src/main/resources/mapper/modules/ContractOrderMapper.xml
@@ -103,14 +103,6 @@
      LEFT JOIN member m ON m.id = s.member_id
      <where>
      s.closing_type in (2,3,4,5,6,7,8,9)
      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})
@@ -118,6 +110,12 @@
                <if test="record.closingType!=null and record.closingType!=''">
                    and s.closing_type = #{record.closingType}
                </if>
            <if test="record.accountType!=null and record.accountType!=''">
               and m.account_type = #{record.accountType}
            </if>
            <if test="record.contractType!=null and record.contractType!=''">
               and s.contract_type = #{record.contractType}
            </if>
            </if>
      </where>
         order by s.opening_time desc