fix: 订单保存先付费后付费

This commit is contained in:
张松
2024-11-13 13:22:16 +08:00
parent f4d364fd21
commit 535c9a022f
2 changed files with 2 additions and 0 deletions

View File

@@ -134,6 +134,7 @@ public class TbOrderInfo implements Serializable {
private BigDecimal fullCouponDiscountAmount;
private BigDecimal productCouponDiscountAmount;
private String couponInfoList;
private int isPostpaid;
public void setDescription(String shopName) {
this.shopName = shopName;

View File

@@ -1000,6 +1000,7 @@ public class CartService {
throw new MsgException("商户信息不存在");
}
orderInfo.setMerchantId(merchantAccount.getId().toString());
orderInfo.setIsPostpaid(eatTypeInfoDTO.isDineInAfter() ? 1 : 0);
}
// 更新取餐号
orderInfo.setOutNumber(getOutNumber(createOrderDTO.getShopId().toString()).toString());