1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
| <mapper namespace="com.xcong.excoin.modules.trademanage.mapper.OrderCoinDealMapper">
|
| <select id="selectOrderCoinsDealListInPage" resultType="com.xcong.excoin.modules.trademanage.entity.OrderCoinsDealEntity">
| SELECT
| s.*,m.phone,m.email
| FROM
| coins_order_deal s
| LEFT JOIN member m ON m.id = s.member_id
| <where>
| s.order_status = 3
| <if test="record != null" >
| <if test="record.phone!=null and record.phone!=''">
| and (m.phone like concat("%",#{record.phone},"%") or m.email like concat("%",#{record.phone},"%") or m.invite_id=#{record.phone})
| </if>
| </if>
| </where>
| ORDER BY s.create_time DESC
| </select>
|
|
| </mapper>
|
|