清台修改
This commit is contained in:
@@ -2,7 +2,7 @@ package com.chaozhanggui.system.cashierservice.bean;
|
|||||||
|
|
||||||
public enum TableStateEnum {
|
public enum TableStateEnum {
|
||||||
IDLE("idle"),
|
IDLE("idle"),
|
||||||
CLOSED("closed"), PAYING("paying"), PENDING("pending"), USING("using");
|
CLOSED("closed"), PAYING("paying"), PENDING("pending"), USING("using"), CLEANING("cleaning");
|
||||||
private String state = "closed";
|
private String state = "closed";
|
||||||
|
|
||||||
TableStateEnum(String state) {
|
TableStateEnum(String state) {
|
||||||
|
|||||||
@@ -150,6 +150,10 @@ public class PayService {
|
|||||||
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
|
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
|
||||||
.eq(TbShopTable::getQrcode, orderInfo.getTableId())
|
.eq(TbShopTable::getQrcode, orderInfo.getTableId())
|
||||||
.set(TbShopTable::getStatus, TableStateEnum.IDLE.getState()));
|
.set(TbShopTable::getStatus, TableStateEnum.IDLE.getState()));
|
||||||
|
}else {
|
||||||
|
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
|
||||||
|
.eq(TbShopTable::getQrcode, orderInfo.getTableId())
|
||||||
|
.set(TbShopTable::getStatus, TableStateEnum.CLEANING.getState()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user