fix: 折扣金额修复
This commit is contained in:
parent
9549aef3bd
commit
c3409461c8
|
|
@ -204,6 +204,9 @@ public class TbCashierCart implements Serializable {
|
|||
* 根据是否会员充值价格
|
||||
*/
|
||||
public void resetTotalAmount(BigDecimal discountRadio) {
|
||||
if (discountRadio == null) {
|
||||
discountRadio = BigDecimal.ONE;
|
||||
}
|
||||
if ("false".equals(isPack)) {
|
||||
packFee = BigDecimal.ZERO;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1582,7 +1582,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||
if (orderInfo != null && shopEatTypeInfoDTO != null) {
|
||||
cashierCart.setIsMember(StrUtil.isBlank(orderInfo.getMemberId()) ? 0 : shopEatTypeInfoDTO.isMemberPrice() ? 1 : 0);
|
||||
}
|
||||
cashierCart.resetTotalAmount();
|
||||
cashierCart.resetTotalAmount(orderInfo == null ? null : orderInfo.getDiscountRatio());
|
||||
|
||||
// 已经退款和使用优惠券的商品不进行统计金额
|
||||
if (!"return".equals(cashierCart.getStatus()) && cashierCart.getUserCouponId() == null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue