台桌预订改造
This commit is contained in:
@@ -2,6 +2,7 @@ package cn.ysk.cashier.enums;
|
|||||||
|
|
||||||
public enum TableStateEnum {
|
public enum TableStateEnum {
|
||||||
IDLE("idle"),
|
IDLE("idle"),
|
||||||
|
SUBSCRIBE("subscribe"),
|
||||||
CLOSED("closed"), PAYING("paying"), PENDING("pending"), USING("using"), CLEANING("cleaning");
|
CLOSED("closed"), PAYING("paying"), PENDING("pending"), USING("using"), CLEANING("cleaning");
|
||||||
private String state = "closed";
|
private String state = "closed";
|
||||||
|
|
||||||
|
|||||||
@@ -306,6 +306,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||||||
data.setStatus("idle");
|
data.setStatus("idle");
|
||||||
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
|
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
|
||||||
.eq(TbShopTable::getQrcode, data.getQrcode())
|
.eq(TbShopTable::getQrcode, data.getQrcode())
|
||||||
|
.ne(TbShopTable::getStatus, TableStateEnum.SUBSCRIBE.getState())
|
||||||
.set(TbShopTable::getStatus, TableStateEnum.IDLE.getState()));
|
.set(TbShopTable::getStatus, TableStateEnum.IDLE.getState()));
|
||||||
}
|
}
|
||||||
Map<String, Object> itemMap = BeanUtil.beanToMap(data, false, false);
|
Map<String, Object> itemMap = BeanUtil.beanToMap(data, false, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user