fix: 修复打包未计算的问题
This commit is contained in:
@@ -176,6 +176,9 @@ public class TbCashierCart implements Serializable {
|
|||||||
* 根据是否会员充值价格
|
* 根据是否会员充值价格
|
||||||
*/
|
*/
|
||||||
public void resetTotalAmount() {
|
public void resetTotalAmount() {
|
||||||
|
if ("false".equals(isPack)) {
|
||||||
|
packFee = BigDecimal.ZERO;
|
||||||
|
}
|
||||||
if ("true".equals(isGift)) {
|
if ("true".equals(isGift)) {
|
||||||
totalAmount = packFee;
|
totalAmount = packFee;
|
||||||
}else {
|
}else {
|
||||||
|
|||||||
@@ -1414,8 +1414,8 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||||||
for (TbCashierCart cashierCart : fullCashierCarts) {
|
for (TbCashierCart cashierCart : fullCashierCarts) {
|
||||||
if (orderInfo != null) {
|
if (orderInfo != null) {
|
||||||
cashierCart.setIsMember(orderInfo.getMemberId() == null ? 0 : 1);
|
cashierCart.setIsMember(orderInfo.getMemberId() == null ? 0 : 1);
|
||||||
cashierCart.resetTotalAmount();
|
|
||||||
}
|
}
|
||||||
|
cashierCart.resetTotalAmount();
|
||||||
|
|
||||||
// 已经退款和使用优惠券的商品不进行统计金额
|
// 已经退款和使用优惠券的商品不进行统计金额
|
||||||
if (!"return".equals(cashierCart.getStatus()) && cashierCart.getUserCouponId() == null) {
|
if (!"return".equals(cashierCart.getStatus()) && cashierCart.getUserCouponId() == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user