feat: 会员价根据店铺设置返回
This commit is contained in:
@@ -82,7 +82,7 @@ public class TbCashierCart implements Serializable {
|
||||
if ("true".equals(isGift)) {
|
||||
totalAmount = packFee;
|
||||
}else {
|
||||
if (isMember != null && isMember == 1) {
|
||||
if (isMember != null && isMember == 1 && memberPrice != null && memberPrice.compareTo(BigDecimal.ZERO) > 0) {
|
||||
totalAmount = BigDecimal.valueOf(totalNumber).multiply(memberPrice).add(packFee);
|
||||
}else {
|
||||
totalAmount = BigDecimal.valueOf(totalNumber).multiply(salePrice).add(packFee);
|
||||
|
||||
@@ -12,6 +12,7 @@ public class ShopEatTypeInfoDTO {
|
||||
private boolean isDineInAfter;
|
||||
private boolean isDineInBefore;
|
||||
private boolean needSeatFee;
|
||||
private boolean isMemberPrice;
|
||||
private TbShopInfo shopInfo;
|
||||
private String useType;
|
||||
private String sendType;
|
||||
|
||||
Reference in New Issue
Block a user