代客下单 createOrder 报错问题
This commit is contained in:
@@ -13,7 +13,7 @@ public class CreateOrderDTO {
|
||||
@NotNull
|
||||
private Integer shopId;
|
||||
@NotEmpty
|
||||
private Long tableId;
|
||||
private String tableId;
|
||||
private String note;
|
||||
private boolean postPay;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user