Browse Source

1/15

master
wangpengfei 1 year ago
parent
commit
38b9bee4e0
  1. 24
      src/main/java/com/yxt/yyth/biz/lpkreserveorder/LpkReserveOrderMapper.xml

24
src/main/java/com/yxt/yyth/biz/lpkreserveorder/LpkReserveOrderMapper.xml

@ -430,9 +430,11 @@
c.serialNumber,
case o.cardType
when 1 then '家庭菜窖'
end cardType
end cardType,
t.goodsSid as goodsSid
FROM
lpk_reserve_order AS o
LEFT JOIN lpk_reserve_order_goods AS t ON t.orderSid = o.sid
LEFT JOIN lpk_store AS s ON o.storeSid = s.sid
LEFT JOIN lpk_giftcard AS c ON o.cardSid = c.sid
LEFT JOIN lpk_giftbag AS b ON c.giftbagSid = b.sid
@ -470,9 +472,11 @@
c.serialNumber,
case o.cardType
when 2 then '亲情菜窖'
end cardType
end cardType,
t.goodsSid as goodsSid
FROM
lpk_reserve_order AS o
LEFT JOIN lpk_reserve_order_goods AS t ON t.orderSid = o.sid
LEFT JOIN lpk_store AS s ON o.storeSid = s.sid
LEFT JOIN emp_card_gift AS c ON o.cardSid = c.sid
LEFT JOIN lpk_giftbag AS b ON c.sid = b.sid
@ -513,9 +517,11 @@
c.serialNumber,
case o.cardType
when 3 then '企业菜窖'
end cardType
end cardType,
t.goodsSid as goodsSid
FROM
lpk_reserve_order AS o
LEFT JOIN lpk_reserve_order_goods AS t ON t.orderSid = o.sid
LEFT JOIN lpk_store AS s ON o.storeSid = s.sid
LEFT JOIN emp_card AS c ON o.cardSid = c.sid
LEFT JOIN lpk_giftbag AS b ON c.giftbagSid = b.sid
@ -559,9 +565,11 @@
c.serialNumber,
case o.cardType
when 1 then '家庭菜窖'
end cardType
end cardType,
t.goodsSid as goodsSid
FROM
lpk_reserve_order AS o
LEFT JOIN lpk_reserve_order_goods AS t ON t.orderSid = o.sid
LEFT JOIN lpk_store AS s ON o.storeSid = s.sid
LEFT JOIN lpk_giftcard AS c ON o.cardSid = c.sid
LEFT JOIN lpk_giftbag AS b ON c.giftbagSid = b.sid
@ -602,9 +610,11 @@
c.serialNumber,
case o.cardType
when 2 then '亲情菜窖'
end cardType
end cardType,
t.goodsSid as goodsSid
FROM
lpk_reserve_order AS o
LEFT JOIN lpk_reserve_order_goods AS t ON t.orderSid = o.sid
LEFT JOIN lpk_store AS s ON o.storeSid = s.sid
LEFT JOIN emp_card_gift AS c ON o.cardSid = c.sid
LEFT JOIN lpk_giftbag AS b ON c.sid = b.sid
@ -647,9 +657,11 @@
c.serialNumber,
case o.cardType
when 3 then '企业菜窖'
end cardType
end cardType,
t.goodsSid as goodsSid
FROM
lpk_reserve_order AS o
LEFT JOIN lpk_reserve_order_goods AS t ON t.orderSid = o.sid
LEFT JOIN lpk_store AS s ON o.storeSid = s.sid
LEFT JOIN emp_card AS c ON o.cardSid = c.sid
LEFT JOIN lpk_giftbag AS b ON c.giftbagSid = b.sid

Loading…
Cancel
Save