shop_id
user_id
pay_amount(实付价格)
order_price(商品总额)
shop_goods(price)
shop_goods_sku_price(sku_price)
quantity(前端传)
coupon_amount(券抵扣)
user_stock:可用券
product(coupon):券金额
discount_amount(卡折扣)
user_card:可用卡、卡余额、卡折扣
shop_goods:商品折扣类型
vip_discount_amount(会员折扣)
member_beauty_vip:会员权益
membership_rights:会员折扣
shop_goods:商品折扣类型
vip_price_amount(会员价优惠)
shop_goods:会员价、商品折扣类型
shop_goods_sku_price:会员价
member_beauty_vip:会员权益
preferential_amount(优惠买单)
在线买单(非丽人行业业务)
gift_card_amount(返现储值卡):未知
rent_amount(礼金卡)
user_card:卡余额
优惠金额(前端)
friendship_amount(公关卡)
user_card:卡余额
优惠金额(前端)
storage_cash_amount(赠送金)
user_card:卡余额
优惠金额:前端传
arbitrarily_amount(手动立减)
优惠金额(前端)
sale_order_goods_payment(单个商品纬度优惠)
shop_id
shop_goods_id
sku_code
shop_goods_price(商品售价)
shop_goods:price
shop_goods:price
shop_goods_sku_price:sku_price
vip_price(会员价)
shop_goods:vip_price
shop_goods_sku_price:sku_vip_price
pay_amount(支付价格)
rent_amount(礼金卡抵扣)
user_card:卡余额
优惠金额(前端)
friendship_amount(公关卡抵扣)
user_card:卡余额
优惠金额(前端)
storage_cash_amount(赠送金)
user_card:卡余额
优惠金额(前端)
arbitrarily_amount(手动立减)
优惠金额(前端)
card_discount_amount(储值卡折扣)
user_card:可用卡、卡余额、卡折扣
vip_price_amount(会员价优惠)
shop_goods:vip_price
shop_goods_sku_price:sku_vip_price
vip_discount_amount(会员折扣优惠)
member_beauty_vip:会员权益
membership_rights:会员折扣
coupon_amount(券优惠)
user_stock:可用券
product(coupon):券金额
相关表
商品信息(售卖价、会员价、库存、折扣类型、sku)
shop_goods、shop_goods_sku_price
产品(GOODS)
服务(CARD_ITEM)
shop_goods_card_item、shop_conf_card_item
项目卡(TIMES_CARD)
shop_goods_card
券(COUPON)
shop_conf_coupon_goods
储值卡(STORAGE_CARD)
shop_goods_card
可抵扣卡列表(user_card、shop_conf_scene、product、user_card_auth)
储值卡(普通、升级)
A00、A01
老业务
shop_card_partner(门店适用)
丽人
shop_goods
shop_goods_card
储值卡折扣、余额
A00
user_card:卡余额
shop_conf_scene、shop_conf_scene_detail:卡折扣
可用券列表
user_stock、product、coupon、coupon_range_partner
会员折扣(丽人)
shop:类型(直营、加盟)、品牌门店
member_beauty_vip(建档用户)
membership_rights(会员权益)
判断是否是会员
老业务:品牌及门店下有卡即会员
丽人
shop:类型(直营、加盟)、品牌门店
member_beauty_vip(建档用户):会员权益
sale_order
生成:<font color="#c41230">id、number、create_time、update_time</font>
前端传:<font color="#c41230">user_id、shop_id、</font><font color="#5c5c5c">source_code</font>、<font color="#662c90">comment(下单不用,需要update)</font>
<font color="#662c90">回调:pay_receipt(第三方支付流水号 或者线下流水号)、pay_time</font>
计算:<font color="#c41230">price、original_price</font>
<font color="#662c90">退款:refund_time</font>
定规范:<font color="#c41230">name、desc</font>:1、shop_goods:name 2、shop_goods:name+等+quantity+个商品 3、写死如:POS机快捷收银
<font color="#c41230">product_id</font>:1、UUID 2、shop_cart:id 3、shop_goods:id
<font color="#c41230">product_type</font>:1、写死 2、前端传
<font color="#c41230">quantity</font>:1、前端传值 2、shop_goods_cart:goods_quantity累计 3、前端传的商品的size 4、写死为1
<font color="#662c90">support_pay_type:1、写死:PAY|OFFLINE 或 PAY|CARDPAY 或 PAY 2、前端传</font>
<font color="#662c90">invoiced (是否开发票):(0 、1)、 is_clearing:( 0、1)、is_deleted:(0、1)、version、batch_no(批次号)、coin:(1、0 2)</font>
<font color="#c41230">梳理:status</font>、delivery_status、take_status、order_status
pay_type:1、小程序:WEPAY_DIRECT(写死) 2、前端传
<font color="#662c90">source_type:YANPU、DIANPING、MEITUAN、KOUBEI、YOUZAN(默认颜铺,三方券为其他)</font>
source_id:1、shop_cart:id 2、相应活动id
<font color="#662c90">verify_type(后续核销方式):MAIL:邮寄、SELF_FETCH:到店自提、SHOP_VERIFY:到店核销SHOP_DELIVERY:门店配送|NONE:无需核销(根据商品类型判断)</font>
待定:refund_deadline(允许退款时间):
<font color="#662c90">gift_user_id:(WINE、IMPORT_CARD、GIFT、COUPON)</font>
sale_order_goods
sale_order:<font color="#c41230">shop_id、user_id、order_id、order_number、</font>
生成:<font color="#c41230">id、</font><br>
前端传:<font color="#c41230">goods_id、</font>sku_code
查shop_goods(shop_cart_goods):<br><font color="#c41230">goods_type、goods_credit、goods_name、goods_price</font>、discount_type、goods_unit、<font color="#c41230">goods_version、</font>shop_goods_type
后端:<font color="#c41230">sequence</font><font color="#5c5c5c">(for、1)</font><font color="#c41230">、goods_quantity:</font><font color="#5c5c5c">1</font><font color="#c41230">、</font><font color="#662c90">status:NORMAL</font>
计算:discount、payment_amount
<font color="#c41230">sale_order_goods_detail</font>
生成:<font color="#5c5c5c">id、create_time、update_time</font>
sale_order_goods:<font color="#5c5c5c">shop_id、goods_id、order_goods_id、user_id、order_id、order_number</font><br>
查shop:<font color="#5c5c5c">brand_id</font>
<font color="#5c5c5c">前端:admin_user_id:关联admin_user表主键ID、named_tech:是否指定技师:1-是|0-否',</font>
<font color="#662c90">后端:admin_role:关联员工角色:0-技师|1-销售、status:(0、1)、is_deleted:(0、1)</font><br>
<font color="#5c5c5c">sale_order_goods_package</font>
生成:id、
sale_order_goods:order_goods_id、<font color="#0076b3">goods_id</font>、shop_id、user_id、order_id、order_number
shop_goods_package:sequence、name、quantity、unit、price、
sale_order_goods_payment
生成:id
sale_order_delivery:shop_id、order_id、order_number、delivery_id
sale_order_delivery_goods:delivery_goods_id
sale_order_goods:shop_goods_id、sku_code、order_goods_id
shop:brandId
shop_goods(shop_goods_sku_price):shop_goods_price、vip_price
计算:pay_amount、<font color="#0076b3">arbitrarily_amount</font>、card_discount_amount、vip_price_amount、vip_discount_amount、coupon_amount
前端:<font color="#0076b3">rent_amount、friendship_amount、storage_cash_amount</font><br>
<font color="#662c90">后端:is_deleted:(0、1)、status:(0、1)</font>
sale_order_payment
生成:id
sale_order:shop_id、user_id、order_id、order_number、
计算:pay_amount、discount_amount、<font color="#0076b3">vip_discount_amount、vip_price_amount、rent_amount、friendship_amount、storage_cash_amount、arbitrarily_amount</font>
shop_goods(shop_goods_sku_price):order_price
user_stock、product:coupon_amount
<font color="#662c90">后端:status:0、1</font>
老业务:preferential_amount、gift_card_amount、<font color="#0076b3">non_join_amount、provider_shop_id</font>
<font color="#662c90">积分:gift_credit</font>
sale_order_delivery
生成:<font color="#c41230">id、number</font>、create_time、update_time、create_by、update_by
sale_order_goods:<font color="#c41230">shop_id、order_id、user_id、order_number、</font><font color="#5c5c5c">order_goods_id</font>
shop_goods(support_deliver_type):<font color="#c41230">deliver_type</font>
user_address:(address_id:前端)receiver_address
后端:<font color="#c41230">status</font>:DELIVERY_WAIT、DELIVERY_FORE、DELIVERY_ONGOING、DELIVERY_CANCELLED
require_time、require_shop_id、confirm_require_admin、confirm_require_name、confirm_require_time、delivery_admin、delivery_name、delivery_time、confirm_type、confirm_time、confirm_delivery_admin、confirm_delivery_name、confirm_delivery_time、verify_id<br>
sale_order_delivery_goods
生成:<font color="#c41230">id</font><font color="#5c5c5c">、create_time、create_by、update_time、update_by</font>
sale_order_delivery:<font color="#c41230">delivery_id</font>、
sale_order_goods:<font color="#c41230">goods_id、</font><font color="#5c5c5c">sku_code</font><font color="#c41230">、goods_name、goods_type、goods_price、goods_quantity、</font><font color="#5c5c5c">goods_unit</font>
后端:<font color="#c41230">status</font>:DELIVERY_WAIT、DELIVERY_FOR、DELIVERY_ONGOING、DELIVERY_CANCELLED<br>
sale_order_delivery_goods_package
生成:id
shop_goods_package:sequence、name、quantity、unit、price、
sale_order_delivery_goods:delivery_goods_id
sale_order_delivery:shop_id、user_id、delivery_id<br>
<font color="#0076b3">version</font>
sale_order_combine
生成:combine_number、create_time、update_time
sale_order:order_id、order_number、order_status
后端:status:(0、1)、is_deleted:(0、1)
自由主题
订单3.0改版
购物车
sale_cart_goods
sku_code默认值调整
用户账户
user_account
sale_order_goods_id
order_number
订单
sale_order
sys_create_time
sale_order_sub_defray
order_goods_id
sale_order_goods
sku_code默认值调整
sale_order_deduction
order_goods_id
sale_order_payment
order_arbitrarily_amount
sale_order_goods_payment
order_arbitrarily_amount
退款
sale_order_delivery_refund
user_account_id
支付
sale_order_pay
sale_order_provider
pay_num
业绩
performance_order_element
order_goods_id
performance_verify_element
delivery_refund_id
技师、销售
sale_order_goods_detail
update_by
verify_item_technician
update_by