|
|
@ -431,7 +431,9 @@ |
|
|
|
case o.cardType |
|
|
|
when 1 then '家庭菜窖' |
|
|
|
end cardType, |
|
|
|
t.goodsSid as goodsSid |
|
|
|
t.goodsSid as goodsSid, |
|
|
|
t.goodsNumber as goodsNumber, |
|
|
|
e.name as goodsName |
|
|
|
FROM |
|
|
|
lpk_reserve_order AS o |
|
|
|
LEFT JOIN lpk_reserve_order_goods AS t ON t.orderSid = o.sid |
|
|
@ -439,14 +441,11 @@ |
|
|
|
LEFT JOIN lpk_giftcard AS c ON o.cardSid = c.sid |
|
|
|
LEFT JOIN lpk_giftbag AS b ON c.giftbagSid = b.sid |
|
|
|
LEFT JOIN lpk_bank AS d ON d.sid = s.bankSid |
|
|
|
left join lpk_goods e on e.sid= t.goodsSid |
|
|
|
<where> |
|
|
|
1=1 |
|
|
|
<if test="qw.cardType =='' and qw.cardType ==null "> |
|
|
|
and o.cardType='1' |
|
|
|
</if> |
|
|
|
<if test="qw.cardType !='' and qw.cardType!=null and qw.cardType='1'"> |
|
|
|
and o.cardType=#{qw.cardType} |
|
|
|
</if> |
|
|
|
and o.cardType='1' |
|
|
|
|
|
|
|
<if test="qw.store !='' and qw.store!=null"> |
|
|
|
and s.name=#{qw.store} |
|
|
|
</if> |
|
|
@ -473,7 +472,9 @@ |
|
|
|
case o.cardType |
|
|
|
when 2 then '亲情菜窖' |
|
|
|
end cardType, |
|
|
|
t.goodsSid as goodsSid |
|
|
|
t.goodsSid as goodsSid, |
|
|
|
t.goodsNumber as goodsNumber, |
|
|
|
e.name as goodsName |
|
|
|
FROM |
|
|
|
lpk_reserve_order AS o |
|
|
|
LEFT JOIN lpk_reserve_order_goods AS t ON t.orderSid = o.sid |
|
|
@ -481,14 +482,11 @@ |
|
|
|
LEFT JOIN emp_card_gift AS c ON o.cardSid = c.sid |
|
|
|
LEFT JOIN lpk_giftbag AS b ON c.sid = b.sid |
|
|
|
LEFT JOIN lpk_bank AS d ON d.sid = s.bankSid |
|
|
|
left join lpk_goods e on e.sid= t.goodsSid |
|
|
|
<where> |
|
|
|
1=1 |
|
|
|
<if test="qw.cardType =='' and qw.cardType ==null "> |
|
|
|
and o.cardType='2' |
|
|
|
</if> |
|
|
|
<if test="qw.cardType !='' and qw.cardType!=null and qw.cardType='2'"> |
|
|
|
and o.cardType=#{qw.cardType} |
|
|
|
</if> |
|
|
|
and o.cardType='2' |
|
|
|
|
|
|
|
<if test="qw.bankSid !='' and qw.bankSid!=null"> |
|
|
|
and s.bankSid=#{qw.bankSid} |
|
|
|
</if> |
|
|
@ -518,7 +516,9 @@ |
|
|
|
case o.cardType |
|
|
|
when 3 then '企业菜窖' |
|
|
|
end cardType, |
|
|
|
t.goodsSid as goodsSid |
|
|
|
t.goodsSid as goodsSid, |
|
|
|
t.goodsNumber as goodsNumber, |
|
|
|
e.name as goodsName |
|
|
|
FROM |
|
|
|
lpk_reserve_order AS o |
|
|
|
LEFT JOIN lpk_reserve_order_goods AS t ON t.orderSid = o.sid |
|
|
@ -526,14 +526,11 @@ |
|
|
|
LEFT JOIN emp_card AS c ON o.cardSid = c.sid |
|
|
|
LEFT JOIN lpk_giftbag AS b ON c.giftbagSid = b.sid |
|
|
|
LEFT JOIN lpk_bank AS d ON d.sid = s.bankSid |
|
|
|
left join lpk_goods e on e.sid= t.goodsSid |
|
|
|
<where> |
|
|
|
1=1 |
|
|
|
<if test="qw.cardType =='' and qw.cardType ==null "> |
|
|
|
and o.cardType='3' |
|
|
|
</if> |
|
|
|
<if test="qw.cardType !='' and qw.cardType!=null and qw.cardType=='3'"> |
|
|
|
and o.cardType=#{qw.cardType} |
|
|
|
</if> |
|
|
|
and o.cardType='3' |
|
|
|
|
|
|
|
<if test="qw.bankSid !='' and qw.bankSid!=null"> |
|
|
|
and s.bankSid=#{qw.bankSid} |
|
|
|
</if> |
|
|
@ -566,7 +563,9 @@ |
|
|
|
case o.cardType |
|
|
|
when 1 then '家庭菜窖' |
|
|
|
end cardType, |
|
|
|
t.goodsSid as goodsSid |
|
|
|
t.goodsSid as goodsSid, |
|
|
|
t.goodsNumber as goodsNumber, |
|
|
|
e.name as goodsName |
|
|
|
FROM |
|
|
|
lpk_reserve_order AS o |
|
|
|
LEFT JOIN lpk_reserve_order_goods AS t ON t.orderSid = o.sid |
|
|
@ -574,14 +573,11 @@ |
|
|
|
LEFT JOIN lpk_giftcard AS c ON o.cardSid = c.sid |
|
|
|
LEFT JOIN lpk_giftbag AS b ON c.giftbagSid = b.sid |
|
|
|
LEFT JOIN lpk_bank AS d ON d.sid = s.bankSid |
|
|
|
left join lpk_goods e on e.sid= t.goodsSid |
|
|
|
<where> |
|
|
|
1=1 |
|
|
|
<if test="qw.cardType =='' and qw.cardType ==null "> |
|
|
|
and o.cardType='1' |
|
|
|
</if> |
|
|
|
<if test="qw.cardType !='' and qw.cardType!=null and qw.cardType='1'"> |
|
|
|
and o.cardType=#{qw.cardType} |
|
|
|
</if> |
|
|
|
and o.cardType='1' |
|
|
|
|
|
|
|
<if test="qw.store !='' and qw.store!=null"> |
|
|
|
and s.name=#{qw.store} |
|
|
|
</if> |
|
|
@ -611,7 +607,9 @@ |
|
|
|
case o.cardType |
|
|
|
when 2 then '亲情菜窖' |
|
|
|
end cardType, |
|
|
|
t.goodsSid as goodsSid |
|
|
|
t.goodsSid as goodsSid, |
|
|
|
t.goodsNumber as goodsNumber, |
|
|
|
e.name as goodsName |
|
|
|
FROM |
|
|
|
lpk_reserve_order AS o |
|
|
|
LEFT JOIN lpk_reserve_order_goods AS t ON t.orderSid = o.sid |
|
|
@ -619,14 +617,11 @@ |
|
|
|
LEFT JOIN emp_card_gift AS c ON o.cardSid = c.sid |
|
|
|
LEFT JOIN lpk_giftbag AS b ON c.sid = b.sid |
|
|
|
LEFT JOIN lpk_bank AS d ON d.sid = s.bankSid |
|
|
|
left join lpk_goods e on e.sid= t.goodsSid |
|
|
|
<where> |
|
|
|
1=1 |
|
|
|
<if test="qw.cardType =='' and qw.cardType ==null "> |
|
|
|
and o.cardType='2' |
|
|
|
</if> |
|
|
|
<if test="qw.cardType !='' and qw.cardType!=null and qw.cardType='2'"> |
|
|
|
and o.cardType=#{qw.cardType} |
|
|
|
</if> |
|
|
|
and o.cardType='2' |
|
|
|
|
|
|
|
<if test="qw.bankSid !='' and qw.bankSid!=null"> |
|
|
|
and s.bankSid=#{qw.bankSid} |
|
|
|
</if> |
|
|
@ -658,7 +653,9 @@ |
|
|
|
case o.cardType |
|
|
|
when 3 then '企业菜窖' |
|
|
|
end cardType, |
|
|
|
t.goodsSid as goodsSid |
|
|
|
t.goodsSid as goodsSid, |
|
|
|
t.goodsNumber as goodsNumber, |
|
|
|
e.name as goodsName |
|
|
|
FROM |
|
|
|
lpk_reserve_order AS o |
|
|
|
LEFT JOIN lpk_reserve_order_goods AS t ON t.orderSid = o.sid |
|
|
@ -666,14 +663,11 @@ |
|
|
|
LEFT JOIN emp_card AS c ON o.cardSid = c.sid |
|
|
|
LEFT JOIN lpk_giftbag AS b ON c.giftbagSid = b.sid |
|
|
|
LEFT JOIN lpk_bank AS d ON d.sid = s.bankSid |
|
|
|
left join lpk_goods e on e.sid= t.goodsSid |
|
|
|
<where> |
|
|
|
1=1 |
|
|
|
<if test="qw.cardType =='' and qw.cardType ==null "> |
|
|
|
and o.cardType='3' |
|
|
|
</if> |
|
|
|
<if test="qw.cardType !='' and qw.cardType!=null and qw.cardType=='3'"> |
|
|
|
and o.cardType=#{qw.cardType} |
|
|
|
</if> |
|
|
|
and o.cardType='3' |
|
|
|
|
|
|
|
<if test="qw.bankSid !='' and qw.bankSid!=null"> |
|
|
|
and s.bankSid=#{qw.bankSid} |
|
|
|
</if> |
|
|
|