状态详情回填

This commit is contained in:
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);
}