From c5857a50d688d0c42b3893854e6f30dc45e61ca9 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期一, 11 十一月 2024 22:32:12 +0800
Subject: [PATCH] 代码提交
---
xinquan-modules/xinquan-system/src/main/java/com/xinquan/system/controller/PageController.java | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/xinquan-modules/xinquan-system/src/main/java/com/xinquan/system/controller/PageController.java b/xinquan-modules/xinquan-system/src/main/java/com/xinquan/system/controller/PageController.java
index 53b0efe..0ad4651 100644
--- a/xinquan-modules/xinquan-system/src/main/java/com/xinquan/system/controller/PageController.java
+++ b/xinquan-modules/xinquan-system/src/main/java/com/xinquan/system/controller/PageController.java
@@ -2,9 +2,7 @@
import com.xinquan.common.core.domain.R;
-import com.xinquan.system.domain.CommissionRule;
import com.xinquan.system.domain.Page;
-import com.xinquan.system.service.CommissionRuleService;
import com.xinquan.system.service.PageService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
@@ -40,16 +38,18 @@
if(one == null){
Page page = new Page();
page.setImg(img);
+ page.setType(1);
pageService.save(page);
}else{
+ one.setType(1);
one.setImg(img);
pageService.updateById(one);
}
return R.ok();
}
- @PostMapping("/saveOrUpdatePlan")
+ @PostMapping("/getPlan")
@ApiOperation(value = "获取计划引导设置",tags = "计划引导设置")
- public R<String> saveOrUpdatePlan() {
+ public R<String> getPlan() {
Page one = pageService.lambdaQuery().eq(Page::getType,2).one();
if (one!=null){
return R.ok(one.getImg());
@@ -63,9 +63,11 @@
if(one == null){
Page page = new Page();
page.setImg(img);
+ page.setType(2);
pageService.save(page);
}else{
one.setImg(img);
+ one.setType(2);
pageService.updateById(one);
}
return R.ok();
--
Gitblit v1.7.1