台桌修改状态清除用餐人数
This commit is contained in:
@@ -1580,10 +1580,10 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||||||
|
|
||||||
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
|
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
|
||||||
.eq(TbShopTable::getQrcode, choseTableDTO.getNewTableId())
|
.eq(TbShopTable::getQrcode, choseTableDTO.getNewTableId())
|
||||||
.set(TbShopTable::getStatus, "using"));
|
.set(TbShopTable::getStatus, TableStateEnum.USING.getState()));
|
||||||
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
|
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
|
||||||
.eq(TbShopTable::getQrcode, choseTableDTO.getOldTableId())
|
.eq(TbShopTable::getQrcode, choseTableDTO.getOldTableId())
|
||||||
.set(TbShopTable::getStatus, "idle"));
|
.set(TbShopTable::getStatus, TableStateEnum.IDLE.getState()));
|
||||||
|
|
||||||
// 将台桌redis数据迁移
|
// 将台桌redis数据迁移
|
||||||
String orderId = removeCurrentOrderId(choseTableDTO.getOldTableId(), choseTableDTO.getShopId().toString());
|
String orderId = removeCurrentOrderId(choseTableDTO.getOldTableId(), choseTableDTO.getShopId().toString());
|
||||||
|
|||||||
Reference in New Issue
Block a user