| | |
| | | |
| | | 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; |
| | |
| | | @Validated |
| | | @RestController |
| | | @RequestMapping(value = "/app/systemConfig") |
| | | @Api(value = "系统配置", tags = "系统配置操作控制器") |
| | | |
| | | @Slf4j |
| | | public class SystemConfigController { |
| | | |
| | |
| | | @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(); |
| | | } |