jiangqs
2023-06-16 ae41759bafec1c2a1e8858fcdcda4272ed4eb84c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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.ruoyi.system.mapper.config.RecommendCooperationMapper">
 
    <select id="pageMerShopRecommend" resultType="com.ruoyi.system.domain.vo.MerShopRecommendPageVo">
        SELECT
        id id,
        corp_status corpStatus,
        recommended_name recommendedName,
        recommended_phone recommendedPhone,
        remark remark
        FROM t_recommend_cooperation
        WHERE del_flag = 0 AND shop_id = #{param.shopId}
        <if test="param.keyword != null and param.keyword != ''">
            AND (recommended_name LIKE CONCAT('%',#{param.keyword},'%') OR recommended_phone LIKE CONCAT('%',#{param.keyword},'%'))
        </if>
        ORDER BY create_time DESC
    </select>
 
</mapper>