xiaoyong931011
2022-03-16 8dd45c1c726b5628dfd8cae1992a27112ebb6af6
src/main/resources/mapper/modules/OrderCoinDealMapper.xml
@@ -19,5 +19,27 @@
      ORDER BY s.create_time DESC
   </select>
   <select id="selectGbzOrderEntitysInPage" resultType="com.xcong.excoin.modules.trademanage.entity.GbzOrderEntity">
      SELECT
      *,
      CONCAT(first_name, second_name) realName
      FROM
      gbz_order s
      LEFT JOIN member m ON m.id = s.member_id
      LEFT JOIN member_authentication a ON a.member_id = s.member_id
      <where>
         <if test="record != null" >
            <if test="record.account!=null and record.account!=''">
               and (m.phone like concat("%",#{record.account},"%") or m.email like concat("%",#{record.account},"%") or m.invite_id=#{record.account})
            </if>
            <if test="record.status!=null and record.status!=''">
               and s.status = #{record.status}
            </if>
         </if>
      </where>
      ORDER BY s.create_time DESC
   </select>
    
</mapper>