1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| <?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.mzl.flower.mapper.customer.FollowMapper">
|
| <select id="myFollow" resultType="com.mzl.flower.dto.response.customer.FollowDTO"
| parameterType="java.lang.String">
| SELECT
| f.id,
| f.supplier_id,
| f.user_id,
| f.create_time,
| s.`name` AS supplierName,
| s.cover AS cover
| FROM
| t_follow_supplier f
| LEFT JOIN t_supplier_info s ON f.supplier_id = s.id
| WHERE
| f.deleted = 0
| <if test="userId != null and userId != ''">
| AND f.user_id = #{userId}
| </if>
| ORDER BY f.create_time DESC
| </select>
| </mapper>
|
|