bug
jiangqs
2023-08-06 6ab383249b70a9646ffde1474b59dcc7d0b97df6
ruoyi-modules/ruoyi-member/src/main/resources/mapper/member/MemberSuggestMapper.xml
@@ -45,8 +45,14 @@
            t_member_suggest tms
        INNER JOIN t_member tm ON tms.create_user_id = tm.user_id
        WHERE tms.del_flag = 0
        <if test="param.keyword!=null and param.keyword !=''">
        <if test="param.keyword!=null and param.keyword !='' and param.shopIds==null">
            AND (tm.real_name LIKE CONCAT('%',#{param.keyword},'%') OR tm.nick_name LIKE CONCAT('%',#{param.keyword},'%') OR tm.mobile LIKE CONCAT('%',#{param.keyword},'%') OR tms.replay_user_name LIKE CONCAT('%',#{param.keyword},'%') OR tms.shop_replay_user_name LIKE CONCAT('%',#{param.keyword},'%'))
        </if>
        <if test="param.keyword!=null and param.keyword !='' and param.shopIds != null">
            AND (tm.real_name LIKE CONCAT('%',#{param.keyword},'%') OR tm.nick_name LIKE CONCAT('%',#{param.keyword},'%') OR tm.mobile LIKE CONCAT('%',#{param.keyword},'%') OR tms.replay_user_name LIKE CONCAT('%',#{param.keyword},'%') OR tms.shop_replay_user_name LIKE CONCAT('%',#{param.keyword},'%') OR FIND_IN_SET(tms.shop_id, #{param.shopIds}) > 0)
        </if>
        <if test="param.keyword == null and param.shopIds!=null and param.shopIds!=''">
            AND FIND_IN_SET(tms.shop_id, #{param.shopIds}) > 0
        </if>
        <if test="param.createStartTime!=null and param.createStartTime!=''">
            AND Date(tms.create_time) &gt;= #{param.createStartTime}
@@ -77,9 +83,6 @@
        </if>
        <if test="param.suggestType!=null and param.suggestType!=''">
            AND tms.suggest_type = #{param.suggestType}
        </if>
        <if test="param.shopIds!=null and param.shopIds!=''">
            AND FIND_IN_SET(tms.shop_id, #{param.shopIds}) > 0
        </if>
        ORDER BY
        <if test="param.suggestSort!=null and param.suggestSort==1">