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