1.代客下单 创建订单直接付款不增加placeNum

This commit is contained in:
SongZhang 2024-09-12 14:47:08 +08:00
parent a40431fbe7
commit 7f0056304d
1 changed files with 3 additions and 1 deletions

View File

@ -1101,7 +1101,9 @@ public class TbShopTableServiceImpl implements TbShopTableService {
orderInfo.setUseType(createOrderDTO.isPostPay() ? "postPay" : "afterPay");
orderInfo.setUserId(createOrderDTO.getVipUserId() == null ? null : String.valueOf(createOrderDTO.getVipUserId()));
orderInfo.setCreatedAt(DateUtil.current());
orderInfo.setPlaceNum(placeNum);
if (addMaterId) {
orderInfo.setPlaceNum(placeNum);
}
orderInfoMapper.updateById(orderInfo);
} else {
String orderNo = generateOrderNumber();