验证码
个人中心-菜单页 首页接口 预约到店(店铺列表) 通用商品列表 登录 退出登录 商品详情(缺少评价部分) 订单页 列表 详情
This commit is contained in:
@@ -62,6 +62,7 @@
|
||||
<result column="enable_label" jdbcType="TINYINT" property="enableLabel" />
|
||||
<result column="tax_config_id" jdbcType="VARCHAR" property="taxConfigId" />
|
||||
<result column="spec_table_headers" jdbcType="VARCHAR" property="specTableHeaders" />
|
||||
<result column="group_category_id" jdbcType="VARCHAR" property="groupCategoryId" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.chaozhanggui.system.cashierservice.entity.TbProductWithBLOBs">
|
||||
<result column="images" jdbcType="LONGVARCHAR" property="images" />
|
||||
@@ -80,7 +81,7 @@
|
||||
created_at, updated_at, base_sales_number, real_sales_number, sales_number, thumb_count,
|
||||
store_count, furnish_meal, furnish_express, furnish_draw, furnish_vir, is_combo,
|
||||
is_show_cash, is_show_mall, is_need_examine, show_on_mall_status, show_on_mall_time,
|
||||
show_on_mall_error_msg, enable_label, tax_config_id, spec_table_headers
|
||||
show_on_mall_error_msg, enable_label, tax_config_id, spec_table_headers,group_category_id
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
images, video, notice, group_snap, spec_info, select_spec
|
||||
@@ -933,4 +934,48 @@
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selGroups" resultType="com.chaozhanggui.system.cashierservice.entity.vo.ShopGroupInfoVo">
|
||||
SELECT
|
||||
info.id AS shopId,
|
||||
info.shop_name AS shopName,
|
||||
info.logo AS shopImg,
|
||||
info.tag AS shopTag,
|
||||
info.lat AS lat,
|
||||
info.lng AS lng,
|
||||
pro.id AS proId,
|
||||
pro.`name` AS proName,
|
||||
pro.cover_img AS proImg,
|
||||
pro.real_sales_number AS number
|
||||
FROM
|
||||
tb_product pro
|
||||
LEFT JOIN tb_shop_info AS info ON info.id = pro.shop_id
|
||||
<where>
|
||||
info.`status`='1'
|
||||
AND pro.is_combo = '1'
|
||||
AND info.cities = #{cities}
|
||||
<if test="type != null and type != ''">
|
||||
AND group_category_id LIKE concat('%',#{type,jdbcType=VARCHAR},'%')
|
||||
</if>
|
||||
<if test="rightTopLng != null and rightTopLng != '' and leftBottomLng != null and leftBottomLng != ''">
|
||||
AND info.lng BETWEEN #{leftBottomLng} AND #{rightTopLng}
|
||||
AND info.lat BETWEEN #{leftBottomLat} AND #{rightTopLat}
|
||||
</if>
|
||||
</where>
|
||||
<choose>
|
||||
<when test="orderBy == '1'">
|
||||
ORDER BY (ABS(info.lat - #{lat}) + ABS(info.lng - #{lng})) ASC
|
||||
</when>
|
||||
<when test="orderBy == '2'">
|
||||
ORDER BYpro.real_sales_number desc
|
||||
</when>
|
||||
<when test="orderBy == '3'">
|
||||
ORDER BY pro.low_price ASC
|
||||
</when>
|
||||
<otherwise>
|
||||
ORDER BY pro.id DESC
|
||||
</otherwise>
|
||||
</choose>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user