代客下单 createOrder 报错问题

This commit is contained in:
wangw 2024-08-28 17:32:07 +08:00
parent 6059797e1a
commit bfd96a1d52
3 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@ public class CreateOrderDTO {
@NotNull
private Integer shopId;
@NotEmpty
private Long tableId;
private String tableId;
private String note;
private boolean postPay;
}

View File

@ -11,7 +11,7 @@ public class PendingDTO {
private String masterId;
@NotNull
private Integer shopId;
private Long tableId;
private String tableId;
private Integer vipUserId;
@NotNull
private Boolean isPending;

View File

@ -914,6 +914,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
pushConsMsg(orderInfo, cashierCarts);
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
.eq(TbShopTable::getShopId, createOrderDTO.getShopId())
.eq(TbShopTable::getQrcode, createOrderDTO.getTableId())
.set(TbShopTable::getStatus, TableStateEnum.USING.getState()));