This commit is contained in:
2024-06-11 14:52:24 +08:00
parent f348972126
commit 7367e11c92
28 changed files with 2994 additions and 1558 deletions

View File

@@ -891,7 +891,7 @@
<select id="selectByIdIn" resultMap="BaseResultMap">
select *
from tb_product
where id in (${ids}) and is_show_mall =1 order by low_price asc
where id in (${ids}) and is_show_mall =1 order by sort asc
</select>
<select id="selectById" resultType="com.chaozhanggui.system.cashierservice.entity.TbProduct">
select
@@ -961,7 +961,7 @@
<where>
info.`status`='1'
AND pro.is_combo = '1'
AND info.cities = #{cities}
AND (info.cities = #{cities} or info.districts = #{cities})
<if test="proName != null and proName != ''">
AND pro.`name` LIKE concat('%',#{proName,jdbcType=VARCHAR},'%')
</if>
@@ -974,13 +974,13 @@
</if>
</where>
<choose>
<when test="orderBy == '1'">
<when test="orderBy == 1">
ORDER BY (ABS(info.lat - #{lat}) + ABS(info.lng - #{lng})) ASC
</when>
<when test="orderBy == '2'">
<when test="orderBy == 2">
ORDER BY pro.real_sales_number desc
</when>
<when test="orderBy == '3'">
<when test="orderBy == 3">
ORDER BY pro.low_price ASC
</when>
<otherwise>
@@ -1008,7 +1008,7 @@
LEFT JOIN tb_shop_info AS info ON info.id = `order`.shop_id
<where>
info.`status`='1'
AND info.cities = #{cities}
AND (info.cities = #{cities} or info.districts = #{cities})
<if test="proName != null and proName != ''">
AND pro.`name` LIKE concat('%',#{proName,jdbcType=VARCHAR},'%')
</if>