fix: 订单保存先付费后付费
This commit is contained in:
@@ -251,6 +251,7 @@ public class TbOrderInfo implements Serializable {
|
||||
private BigDecimal productCouponDiscountAmount;
|
||||
// 满减抵扣金额
|
||||
private BigDecimal fullCouponDiscountAmount;
|
||||
private Integer isPostpaid;
|
||||
|
||||
public void copy(TbOrderInfo source){
|
||||
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
|
||||
|
||||
@@ -1547,6 +1547,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
||||
throw new BadRequestException("商户信息不存在");
|
||||
}
|
||||
orderInfo.setMerchantId(merchantAccount.getId().toString());
|
||||
orderInfo.setIsPostpaid(eatTypeInfoDTO.isDineInAfter() ? 1 : 0);
|
||||
}
|
||||
// 更新取餐号
|
||||
orderInfo.setOutNumber(updateOutNumber(String.valueOf(createOrderDTO.getShopId())).toString());
|
||||
|
||||
Reference in New Issue
Block a user