代客下单 createOrder 报错问题

This commit is contained in:
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 @NotNull
private Integer shopId; private Integer shopId;
@NotEmpty @NotEmpty
private Long tableId; private String tableId;
private String note; private String note;
private boolean postPay; private boolean postPay;
} }

View File

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

View File

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