修改会员点单信息

This commit is contained in:
SongZhang 2024-09-29 10:42:32 +08:00
parent 4c56736535
commit 1fa1921735
2 changed files with 3 additions and 0 deletions

View File

@ -17,4 +17,5 @@ public class CreateOrderDTO {
private Integer orderId;
@NotEmpty
private String useType;
private String vipUserId;
}

View File

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