xiaoyong931011
2020-07-09 d0bc877490efea47d0b6188eb48b41d550c5b23c
src/main/resources/mapper/modules/ContractOrderMapper.xml
@@ -9,10 +9,14 @@
         contract_order s
      LEFT JOIN member m ON m.id = s.member_id
      <where>
      order_type in (3,4)
         <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