临时菜价格

This commit is contained in:
wangw 2025-03-04 09:59:44 +08:00
parent 75a0e181cc
commit 3ece479798
1 changed files with 25 additions and 21 deletions

View File

@ -5,36 +5,40 @@
<mapper namespace="com.czg.service.order.mapper.CashierCartMapper">
<select id="getCartByTableCode" resultType="com.czg.order.entity.OrderDetail">
select cart.shop_id as shopId,
cart.number as num,
pros.pack_fee as packAmount,
cart.pack_number as packNumber,
cart.is_temporary as isTemporary,
cart.discount_sale_note as discountSaleNote,
cart.is_print as isPrint,
cart.is_wait_call as isWaitCall,
cart.pro_group_info as proGroupInfo,
cart.remark as remark,
cart.product_id as productId,
pros.cover_img as productImg,
pros.type as productType,
cart.sku_id as skuId,
skus.spec_info as skuName,
select cart.shop_id as shopId,
cart.number as num,
pros.pack_fee as packAmount,
cart.pack_number as packNumber,
cart.is_temporary as isTemporary,
cart.discount_sale_note as discountSaleNote,
cart.is_print as isPrint,
cart.is_wait_call as isWaitCall,
cart.pro_group_info as proGroupInfo,
cart.remark as remark,
cart.product_id as productId,
pros.cover_img as productImg,
pros.type as productType,
cart.sku_id as skuId,
skus.spec_info as skuName,
case cart.is_gift
when 1 then 0
else cart.discount_sale_amount end as discountSaleAmount,
else cart.discount_sale_amount end as discountSaleAmount,
case cart.is_gift
when 1 then 0
else skus.sale_price end as price,
else case cart.is_temporary
when 1 then cart.discount_sale_amount
else skus.sale_price end end as price,
case cart.is_gift
when 1 then 0
else skus.member_price end as memberPrice,
'wait-pay' as status,
#{placeNum} as placeNum,
else case cart.is_temporary
when 1 then cart.discount_sale_amount
else skus.member_price end end as memberPrice,
'wait-pay' as status,
#{placeNum} as placeNum,
case cart.is_temporary
when 1 then cart.product_name
else pros.name
end as productName
end as productName
from tb_cashier_cart cart
left join tb_product pros on cart.product_id = pros.id
left join tb_prod_sku skus on cart.sku_id = skus.id