| | |
| | | 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) >= #{param.createStartTime} |
| | |
| | | </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"> |