状态详情回填

This commit is contained in:
wangw 2025-05-09 11:24:38 +08:00
parent 1132c2adc6
commit 4421b1c33c
2 changed files with 13 additions and 1 deletions

View File

@ -9,6 +9,7 @@ import com.czg.account.entity.ShopTable;
import com.czg.account.service.ShopTableService;
import com.czg.account.vo.ShopTableVO;
import com.czg.annotation.SaAdminCheckPermission;
import com.czg.enums.ShopTableStatusEnum;
import com.czg.exception.ApiNotPrintException;
import com.czg.resp.CzgResult;
import com.czg.sa.StpKit;
@ -75,7 +76,9 @@ public class ShopTableController {
if (StrUtil.isNotBlank(tableCode)) {
queryWrapper.eq(ShopTable::getTableCode, tableCode);
}
return CzgResult.success(shopTableService.getOne(queryWrapper));
ShopTable one = shopTableService.getOne(queryWrapper);
one.setStatusMsg(ShopTableStatusEnum.getMsgByValue(one.getStatus()));
return CzgResult.success(one);
}

View File

@ -245,4 +245,13 @@ public class ShopInfoEditDTO {
* 是否为主店 1- 0-
*/
private Integer isHeadShop;
/**
* 台桌清理类型 'auto 自动 hand 手动' 默认auto
*/
private String tableClearType;
/**
* '自动清台 支付几分钟后 默认10分钟后'
*/
private Integer tableClearTime;
}