状态详情回填
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user