修改会员点单信息

This commit is contained in:
SongZhang 2024-09-29 10:51:10 +08:00
parent 1fa1921735
commit c5d68ffffc
1 changed files with 6 additions and 2 deletions

View File

@ -1187,7 +1187,9 @@ public class TbShopTableServiceImpl implements TbShopTableService {
orderInfo.setCreatedAt(DateUtil.current());
orderInfo.setSeatAmount(mealAmount);
orderInfo.setSeatCount(mealNum);
orderInfo.setUserId(createOrderDTO.getVipUserId());
if (StrUtil.isNotBlank(createOrderDTO.getVipUserId())) {
orderInfo.setUserId(createOrderDTO.getVipUserId());
}
orderInfo.setSendType(shopEatTypeInfoDTO.getSendType());
// 存在新添加的商品增加下单次数
if (hasNewInfo) {
@ -1221,7 +1223,9 @@ public class TbShopTableServiceImpl implements TbShopTableService {
orderInfo.setTableName(tbShopTable != null ? tbShopTable.getName() : null);
orderInfo.setPlaceNum(placeNum);
orderInfo.setUseType(createOrderDTO.getUseType());
orderInfo.setUserId(createOrderDTO.getVipUserId());
if (StrUtil.isNotBlank(createOrderDTO.getVipUserId())) {
orderInfo.setUserId(createOrderDTO.getVipUserId());
}
orderInfo.setSeatAmount(mealAmount);
orderInfo.setSeatCount(mealNum);
orderInfo.setSendType(shopEatTypeInfoDTO.getSendType());