From e3a2245265516fef78b4737d6fffc939e7c5e0af Mon Sep 17 00:00:00 2001
From: huliguo <2023611923@qq.com>
Date: 星期四, 03 七月 2025 17:56:07 +0800
Subject: [PATCH] bug修改

---
 pt-admin/src/main/java/com/ruoyi/web/controller/errand/SystemConfigController.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/pt-admin/src/main/java/com/ruoyi/web/controller/errand/SystemConfigController.java b/pt-admin/src/main/java/com/ruoyi/web/controller/errand/SystemConfigController.java
index 1878cf4..020d436 100644
--- a/pt-admin/src/main/java/com/ruoyi/web/controller/errand/SystemConfigController.java
+++ b/pt-admin/src/main/java/com/ruoyi/web/controller/errand/SystemConfigController.java
@@ -2,6 +2,7 @@
 
 import com.alibaba.fastjson2.JSON;
 import com.alibaba.fastjson2.JSONObject;
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.ruoyi.common.core.domain.R;
 import com.ruoyi.errand.constant.SystemConfigTypeConstant;
 import com.ruoyi.errand.domain.SystemConfig;
@@ -46,7 +47,7 @@
     @GetMapping("/index/start")
     @ApiOperation(value = "启动页-详情", tags = {"app用户端-启动页","管理后台-启动页配置"})
     public R<StartPageSetDto> indexStart(){
-        SystemConfig one = systemConfigService.lambdaQuery().eq(SystemConfig::getType, SystemConfigTypeConstant.START_PAGE).one();
+        SystemConfig one = systemConfigService.getBaseMapper().selectOne(new LambdaQueryWrapper<SystemConfig>().eq(SystemConfig::getType, SystemConfigTypeConstant.START_PAGE));;
         if (one==null){
             return R.ok();
         }

--
Gitblit v1.7.1