团购卷卷码表

原订单列表逻辑
店铺营业时间
团购卷订单
团购卷卷码表
资源管理 字典管理
通用门店
个人中心
支付
This commit is contained in:
2024-05-13 17:51:30 +08:00
parent d391f136bf
commit 6f6d1c3a7b
69 changed files with 1533 additions and 666 deletions

View File

@@ -29,6 +29,8 @@
<result column="type" jdbcType="VARCHAR" property="type"/>
<result column="industry" jdbcType="VARCHAR" property="industry"/>
<result column="industry_name" jdbcType="VARCHAR" property="industryName"/>
<result column="business_start_day" jdbcType="VARCHAR" property="businessStartDay"/>
<result column="business_end_day" jdbcType="VARCHAR" property="businessEndDay"/>
<result column="business_time" jdbcType="VARCHAR" property="businessTime"/>
<result column="post_time" jdbcType="VARCHAR" property="postTime"/>
<result column="post_amount_line" jdbcType="DECIMAL" property="postAmountLine"/>
@@ -56,7 +58,7 @@
, account, shop_code, sub_title, merchant_id, shop_name, chain_name, back_img,
front_img, contact_name, phone, logo, is_deposit, is_supply, cover_img, share_img,
detail, lat, lng, mch_id, register_type, is_wx_ma_independent, address, city, type,
industry, industry_name, business_time, post_time, post_amount_line, on_sale, settle_type,
industry, industry_name, business_start_day,business_end_day,business_time, post_time, post_amount_line, on_sale, settle_type,
settle_time, enter_at, expire_at, status, average, order_wait_pay_minute, support_device_number,
distribute_level, created_at, updated_at, proxy_id, shop_qrcode, tag,is_open_yhq
</sql>
@@ -72,6 +74,13 @@
where id = #{id,jdbcType=INTEGER}
</select>
<select id="selNumByChain" resultType="java.lang.Integer">
select
count(1)
from tb_shop_info
where chain_name = #{chainName}
</select>
<select id="selShopInfoByGps" resultType="com.chaozhanggui.system.cashierservice.entity.vo.SubShopVo">
SELECT
@@ -80,11 +89,14 @@
tb_shop_info as info
<where>
info.status=1
AND info.cities =#{cities}
AND (info.cities =#{cities} or info.districts =#{cities})
<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>
<if test="shopName != null and shopName != ''">
AND shop_name = #{shopName}
</if>
</where>
ORDER BY (ABS(info.lat - #{lat}) + ABS(info.lng - #{lng})) ASC
</select>