update 首页店铺列表模糊查询修改
This commit is contained in:
@@ -55,20 +55,23 @@
|
||||
<foreach collection="ids" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
<choose>
|
||||
<when test="coin != null and coin != ''">
|
||||
AND (sub.coin LIKE CONCAT('%', #{coin}, '%')
|
||||
<if test="algorithm != null and algorithm != ''">
|
||||
AND sub.algorithm LIKE CONCAT('%', #{algorithm}, '%')
|
||||
</if>
|
||||
)
|
||||
</when>
|
||||
<otherwise>
|
||||
<if test="algorithm != null and algorithm != ''">
|
||||
AND sub.algorithm LIKE CONCAT('%', #{algorithm}, '%')
|
||||
</if>
|
||||
</otherwise>
|
||||
</choose>
|
||||
<if test="keyword != null and keyword != ''">
|
||||
AND (sub.coin LIKE CONCAT('%', #{keyword}, '%') OR sub.algorithm LIKE CONCAT('%', #{keyword}, '%'))
|
||||
</if>
|
||||
<!-- <choose>-->
|
||||
<!-- <when test="coin != null and coin != ''">-->
|
||||
<!-- AND (sub.coin LIKE CONCAT('%', #{coin}, '%')-->
|
||||
<!-- <if test="algorithm != null and algorithm != ''">-->
|
||||
<!-- AND sub.algorithm LIKE CONCAT('%', #{algorithm}, '%')-->
|
||||
<!-- </if>-->
|
||||
<!-- )-->
|
||||
<!-- </when>-->
|
||||
<!-- <otherwise>-->
|
||||
<!-- <if test="algorithm != null and algorithm != ''">-->
|
||||
<!-- AND sub.algorithm LIKE CONCAT('%', #{algorithm}, '%')-->
|
||||
<!-- </if>-->
|
||||
<!-- </otherwise>-->
|
||||
<!-- </choose>-->
|
||||
GROUP BY ls.id, ls.name, ls.image, ls.description, ls.sale_number
|
||||
ORDER BY ls.fee_rate DESC, ls.sale_number DESC
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user