puzhibing
2024-12-11 89ff1a52320315f24912b58e4e025e35237cf367
ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/SystemConfigController.java
@@ -9,8 +9,6 @@
import com.ruoyi.other.api.dto.StartPageSetDto;
import com.ruoyi.other.service.SystemConfigService;
import org.springframework.web.bind.annotation.*;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;
import io.swagger.annotations.ApiOperation;
import javax.annotation.Resource;
@@ -30,7 +28,7 @@
    @Resource
    private SystemConfigService systemConfigService;
    @PostMapping("/index/add")
   @ApiOperation(value = "添加", tags = {"后台-广告管理-首页配置"})
   @ApiOperation(value = "添加", tags = {"后台管理-广告管理-首页配置"})
   public R add(@RequestBody IndexConfigSetDto indexConfigSetDto){
        //先删除type=2的数据
        List<SystemConfig> list = systemConfigService.lambdaQuery().eq(SystemConfig::getType, 2).list();
@@ -42,7 +40,7 @@
        return R.ok();
      }
    @GetMapping("/index/detail")
   @ApiOperation(value = "宣传图片-公司简介", tags = {"后台-广告管理-首页配置","小程序-首页"})
   @ApiOperation(value = "宣传图片-公司简介", tags = {"后台管理-广告管理-首页配置","小程序-首页"})
   public R<IndexConfigSetDto> detail(){
        SystemConfig one = systemConfigService.lambdaQuery().eq(SystemConfig::getType, 2).one();
        if (one==null){
@@ -66,7 +64,7 @@
      return R.ok(one);
   }
    @PostMapping("/index/start")
    @GetMapping("/index/start")
    @ApiOperation(value = "宣传图片-公司简介", tags = {"小程序-启动页"})
    public R<StartPageSetDto> indexstart(){
        SystemConfig one = systemConfigService.lambdaQuery().eq(SystemConfig::getType, 1).one();
@@ -79,7 +77,7 @@
    }
    @PostMapping("/startPage/add")
    @ApiOperation(value = "添加", tags = {"后台-广告管理-启动页管理"})
    @ApiOperation(value = "添加", tags = {"后台管理-广告管理-启动页管理"})
    public R startPageadd(@RequestBody StartPageSetDto startPageSetDto){
        //先删除type=1的数据
        List<SystemConfig> list = systemConfigService.lambdaQuery().eq(SystemConfig::getType, 1).list();