From efb9570ba3ba966200b82ca7b99c5e72672ee738 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 18 六月 2025 14:52:39 +0800
Subject: [PATCH] 111

---
 server/src/main/java/com/doumee/dao/vo/FootDataVO.java                         |   42 ++++++++
 server/src/main/java/com/doumee/service/business/CarouselService.java          |    7 +
 /dev/null                                                                      |   39 -------
 server/src/main/java/com/doumee/core/constants/Constants.java                  |    8 +
 server/src/main/java/com/doumee/service/business/impl/CarouselServiceImpl.java |   82 ++++++++++++++++
 server/src/main/java/com/doumee/api/web/WebApiController.java                  |   10 +
 server/src/main/java/com/doumee/api/business/CarouselController.java           |   15 +++
 server/src/main/java/com/doumee/dao/dto/FootDataDTO.java                       |   40 ++++++++
 8 files changed, 200 insertions(+), 43 deletions(-)

diff --git a/server/src/main/java/com/doumee/api/business/CarouselController.java b/server/src/main/java/com/doumee/api/business/CarouselController.java
index 467fd54..9971d0d 100644
--- a/server/src/main/java/com/doumee/api/business/CarouselController.java
+++ b/server/src/main/java/com/doumee/api/business/CarouselController.java
@@ -7,6 +7,8 @@
 import com.doumee.core.model.PageWrap;
 import com.doumee.core.model.PageData;
 import com.doumee.dao.business.model.Carousel;
+import com.doumee.dao.dto.FootDataDTO;
+import com.doumee.dao.vo.FootDataVO;
 import com.doumee.service.business.CarouselService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
@@ -100,4 +102,17 @@
         return ApiResponse.success(null);
     }
 
+    @ApiOperation("鑾峰彇foot閰嶇疆")
+    @GetMapping("/getFoodDataVO")
+    public ApiResponse<FootDataVO> getFoodDataVO() {
+        return ApiResponse.success(carouselService.getFoodDataVO());
+    }
+
+    @ApiOperation("鑾峰彇foot閰嶇疆")
+    @PostMapping("/updFoodDataVO")
+    public ApiResponse<FootDataVO> updFoodDataVO(@RequestBody FootDataDTO footDataDTO) {
+        carouselService.updFoodDataVO(footDataDTO);
+        return ApiResponse.success(null);
+    }
+
 }
diff --git a/server/src/main/java/com/doumee/api/web/WebApiController.java b/server/src/main/java/com/doumee/api/web/WebApiController.java
index 72f1f35..43e5930 100644
--- a/server/src/main/java/com/doumee/api/web/WebApiController.java
+++ b/server/src/main/java/com/doumee/api/web/WebApiController.java
@@ -9,7 +9,7 @@
 import com.doumee.core.model.PageWrap;
 import com.doumee.dao.business.model.Carousel;
 import com.doumee.dao.business.model.Information;
-import com.doumee.dao.web.vo.CategoryVO;
+import com.doumee.dao.vo.FootDataVO;
 import com.doumee.service.business.CarouselService;
 import com.doumee.service.business.InformationService;
 import io.swagger.annotations.Api;
@@ -58,9 +58,11 @@
         return ApiResponse.success(informationService.findById(id));
     }
 
-
-
-
+    @ApiOperation("鑾峰彇foot閰嶇疆")
+    @GetMapping("/getFoodDataVO")
+    public ApiResponse<FootDataVO> getFoodDataVO() {
+        return ApiResponse.success(carouselService.getFoodDataVO());
+    }
 
 
 
diff --git a/server/src/main/java/com/doumee/core/constants/Constants.java b/server/src/main/java/com/doumee/core/constants/Constants.java
index 795460f..46e31ec 100644
--- a/server/src/main/java/com/doumee/core/constants/Constants.java
+++ b/server/src/main/java/com/doumee/core/constants/Constants.java
@@ -33,6 +33,14 @@
     public static final String SYSTEM ="SYSTEM" ;
     public static final String IMG_DIR = "IMG_DIR";
     public static final String FILE_DIR ="FILE_DIR" ;
+    public static final String FOOT_IMGURL ="FOOT_IMGURL" ;
+    public static final String LINK_PHONE ="LINK_PHONE" ;
+    public static final String LINK_MOBILE ="LINK_MOBILE" ;
+    public static final String SERVER_TIME ="SERVER_TIME" ;
+    public static final String ADDRESS ="ADDRESS" ;
+    public static final String SOLVE_SCHEME ="SOLVE_SCHEME" ;
+    public static final String WISDOM_SYSTEM ="WISDOM_SYSTEM" ;
+    public static final String FOOT_WORDS ="FOOT_WORDS" ;
 
 
     public static final String QYWX = "QYWX";
diff --git a/server/src/main/java/com/doumee/dao/dto/FootDataDTO.java b/server/src/main/java/com/doumee/dao/dto/FootDataDTO.java
new file mode 100644
index 0000000..ed14cf8
--- /dev/null
+++ b/server/src/main/java/com/doumee/dao/dto/FootDataDTO.java
@@ -0,0 +1,40 @@
+package com.doumee.dao.dto;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+/**
+ * Created by IntelliJ IDEA.
+ *
+ * @Author : Rk
+ * @create 2025/4/8 9:20
+ */
+@Data
+public class FootDataDTO {
+
+    @ApiModelProperty(value = "foot浜岀淮鐮�")
+    private String footImgUrl;
+
+    @ApiModelProperty(value = "foot鏂囨")
+    private String footWords;
+
+    @ApiModelProperty(value = "鑱旂郴鐢佃瘽")
+    private String linkPhone;
+
+    @ApiModelProperty(value = "鑱旂郴鎵嬫満")
+    private String linkMobile;
+
+    @ApiModelProperty(value = "鏈嶅姟鏃堕棿")
+    private String serverTime;
+
+    @ApiModelProperty(value = "鍏徃鍦板潃")
+    private String address;
+
+    @ApiModelProperty(value = "瑙e喅鏂规锛圼{\"name\":\"瑙e喅鏂规涓�\",\"address\":\"璺宠浆鍦板潃涓�\"},{\"name\":\"瑙e喅鏂规浜孿",\"address\":\"璺宠浆鍦板潃浜孿"}]锛�")
+    private String solveScheme;
+
+    @ApiModelProperty(value = "鏅烘収绯荤粺锛圼{\"name\":\"鏅烘収绯荤粺涓�\",\"address\":\"璺宠浆鍦板潃涓�\"},{\"name\":\"鏅烘収绯荤粺浜孿",\"address\":\"璺宠浆鍦板潃浜孿"}]锛�")
+    private String wisdomSystem;
+
+
+}
diff --git a/server/src/main/java/com/doumee/dao/vo/FootDataVO.java b/server/src/main/java/com/doumee/dao/vo/FootDataVO.java
new file mode 100644
index 0000000..6a060dc
--- /dev/null
+++ b/server/src/main/java/com/doumee/dao/vo/FootDataVO.java
@@ -0,0 +1,42 @@
+package com.doumee.dao.vo;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.List;
+
+/**
+ * Created by IntelliJ IDEA.
+ *
+ * @Author : Rk
+ * @create 2025/4/8 9:20
+ */
+@Data
+public class FootDataVO {
+
+    @ApiModelProperty(value = "foot浜岀淮鐮�")
+    private String footImgUrl;
+
+    @ApiModelProperty(value = "foot鏂囨")
+    private String footWords;
+
+    @ApiModelProperty(value = "鑱旂郴鐢佃瘽")
+    private String linkPhone;
+
+    @ApiModelProperty(value = "鑱旂郴鎵嬫満")
+    private String linkMobile;
+
+    @ApiModelProperty(value = "鏈嶅姟鏃堕棿")
+    private String serverTime;
+
+    @ApiModelProperty(value = "鍏徃鍦板潃")
+    private String address;
+
+    @ApiModelProperty(value = "瑙e喅鏂规锛圼{\"name\":\"瑙e喅鏂规涓�\",\"address\":\"璺宠浆鍦板潃涓�\"},{\"name\":\"瑙e喅鏂规浜孿",\"address\":\"璺宠浆鍦板潃浜孿"}]锛�")
+    private String solveScheme;
+
+    @ApiModelProperty(value = "鏅烘収绯荤粺锛圼{\"name\":\"鏅烘収绯荤粺涓�\",\"address\":\"璺宠浆鍦板潃涓�\"},{\"name\":\"鏅烘収绯荤粺浜孿",\"address\":\"璺宠浆鍦板潃浜孿"}]锛�")
+    private String wisdomSystem;
+
+
+}
diff --git a/server/src/main/java/com/doumee/dao/web/vo/CategoryVO.java b/server/src/main/java/com/doumee/dao/web/vo/CategoryVO.java
deleted file mode 100644
index 782abe5..0000000
--- a/server/src/main/java/com/doumee/dao/web/vo/CategoryVO.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package com.doumee.dao.web.vo;
-
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-
-import java.util.List;
-
-/**
- * Created by IntelliJ IDEA.
- *
- * @Author : Rk
- * @create 2025/4/8 9:20
- */
-@Data
-public class CategoryVO {
-
-    @ApiModelProperty(value = "鍒嗙被涓婚敭")
-    private Integer id;
-
-    @ApiModelProperty(value = "鍒嗙被鍚嶇О")
-    private String name;
-
-    @ApiModelProperty(value = "鐖剁骇鍒嗙被涓婚敭",hidden = true)
-    private Integer parentId;
-
-    @ApiModelProperty(value = "瀛愮被闆嗗悎")
-    private List<CategoryVO> childList;
-
-}
diff --git a/server/src/main/java/com/doumee/dao/web/vo/CategoryVOTree.java b/server/src/main/java/com/doumee/dao/web/vo/CategoryVOTree.java
deleted file mode 100644
index e401b15..0000000
--- a/server/src/main/java/com/doumee/dao/web/vo/CategoryVOTree.java
+++ /dev/null
@@ -1,89 +0,0 @@
-package com.doumee.dao.web.vo;
-
-import com.doumee.core.constants.Constants;
-import org.apache.commons.lang3.StringUtils;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Objects;
-
-/**
- * Created by IntelliJ IDEA.
- *
- * @Author : Rk
- * @create 2025/4/8 9:19
- */
-public class CategoryVOTree {
-
-    // 淇濆瓨鍙備笌鏋勫缓鏍戝舰鐨勬墍鏈夋暟鎹紙閫氬父鏁版嵁搴撴煡璇㈢粨鏋滐級
-    public List<CategoryVO> nodeList = new ArrayList<>();
-
-    /**
-     *  鏋勯�犳柟娉�
-     *  @param nodeList 灏嗘暟鎹泦鍚堣祴鍊肩粰nodeList锛屽嵆鎵�鏈夋暟鎹綔涓烘墍鏈夎妭鐐广��
-     */
-    public CategoryVOTree(List<CategoryVO> nodeList){
-        this.nodeList = nodeList;
-    }
-
-
-    /**
-     *   鑾峰彇闇�鏋勫缓鐨勬墍鏈夋牴鑺傜偣锛堥《绾ц妭鐐癸級 "0"
-     *   @return 鎵�鏈夋牴鑺傜偣List闆嗗悎
-     */
-    public List<CategoryVO> getRootNode(){
-        // 淇濆瓨鎵�鏈夋牴鑺傜偣锛堟墍鏈夋牴鑺傜偣鐨勬暟鎹級
-        List<CategoryVO> rootNodeList = new ArrayList<>();
-        // treeNode锛氭煡璇㈠嚭鐨勬瘡涓�鏉℃暟鎹紙鑺傜偣锛�
-        for (CategoryVO treeNode : nodeList){
-            // 鍒ゆ柇褰撳墠鑺傜偣鏄惁涓烘牴鑺傜偣锛屾澶勬敞鎰忥細鑻arentId绫诲瀷鏄疭tring锛屽垯瑕侀噰鐢╡quals()鏂规硶鍒ゆ柇銆�
-            if(Objects.isNull(treeNode.getParentId())){
-                rootNodeList.add(treeNode);
-            }
-        }
-        return rootNodeList;
-    }
-
-
-    /**
-     *  鏍规嵁姣忎竴涓《绾ц妭鐐癸紙鏍硅妭鐐癸級杩涜鏋勫缓鏍戝舰缁撴瀯
-     *  @return  鏋勫缓鏁存5鏍�
-     */
-    public List<CategoryVO> buildTree(){
-        // treeNodes锛氫繚瀛樹竴涓《绾ц妭鐐规墍鏋勫缓鍑烘潵鐨勫畬鏁存爲褰�
-        List<CategoryVO> treeNodes = new ArrayList<CategoryVO>();
-        // getRootNode()锛氳幏鍙栨墍鏈夌殑鏍硅妭鐐�
-        for (CategoryVO treeRootNode : getRootNode()) {
-            // 灏嗛《绾ц妭鐐硅繘琛屾瀯寤哄瓙鏍�
-            treeRootNode = buildChildTree(treeRootNode);
-            // 瀹屾垚涓�涓《绾ц妭鐐规墍鏋勫缓鐨勬爲褰紝澧炲姞杩涙潵
-            treeNodes.add(treeRootNode);
-        }
-        return treeNodes;
-    }
-
-    /**
-     *  閫掑綊-----鏋勫缓瀛愭爲褰㈢粨鏋�
-     *  @param  pNode 鏍硅妭鐐癸紙椤剁骇鑺傜偣锛�
-     *  @return 鏁存5鏍�
-     */
-    public CategoryVO buildChildTree(CategoryVO pNode){
-        List<CategoryVO> childTree = new ArrayList<CategoryVO>();
-        // nodeList锛氭墍鏈夎妭鐐归泦鍚堬紙鎵�鏈夋暟鎹級
-        for (CategoryVO treeNode : nodeList) {
-            // 鍒ゆ柇褰撳墠鑺傜偣鐨勭埗鑺傜偣ID鏄惁绛変簬鏍硅妭鐐圭殑ID锛屽嵆褰撳墠鑺傜偣涓哄叾涓嬬殑瀛愯妭鐐�
-
-            if (!Objects.isNull(treeNode.getParentId())&& Constants.equalsInteger(treeNode.getParentId(),pNode.getId())) {
-                // 鍐嶉�掑綊杩涜鍒ゆ柇褰撳墠鑺傜偣鐨勬儏鍐碉紝璋冪敤鑷韩鏂规硶
-                childTree.add(buildChildTree(treeNode));
-            }
-        }
-        // for寰幆缁撴潫锛屽嵆鑺傜偣涓嬫病鏈変换浣曡妭鐐癸紝鏍戝舰鏋勫缓缁撴潫锛岃缃爲缁撴灉
-        pNode.setChildList(childTree);
-        return pNode;
-    }
-
-
-
-
-}
diff --git a/server/src/main/java/com/doumee/dao/web/vo/WorkOrderDataVO.java b/server/src/main/java/com/doumee/dao/web/vo/WorkOrderDataVO.java
deleted file mode 100644
index aa63d8e..0000000
--- a/server/src/main/java/com/doumee/dao/web/vo/WorkOrderDataVO.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package com.doumee.dao.web.vo;
-
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-
-import java.util.List;
-
-/**
- * Created by IntelliJ IDEA.
- *
- * @Author : Rk
- * @create 2025/4/8 9:20
- */
-@Data
-public class WorkOrderDataVO {
-
-    @ApiModelProperty(value = "鏃ユ湡")
-    private String dateStr;
-
-    @ApiModelProperty(value = "鎬绘暟")
-    private Integer total;
-
-    @ApiModelProperty(value = "SHE鎬绘暟")
-    private Integer sheTotal;
-    @ApiModelProperty(value = "DCA绗﹀悎鎬绘暟")
-    private Integer dcaYesTotal;
-    @ApiModelProperty(value = "DCA涓嶇鍚堟�绘暟")
-    private Integer dcaNoTotal;
-
-    @ApiModelProperty(value = "WTS鎬绘暟")
-    private Integer wtsTotal;
-
-    @ApiModelProperty(value = "宸ョ▼甯堟�绘暟")
-    private Integer gcsTotal;
-
-    @ApiModelProperty(value = "鏈叧闂�绘暟")
-    private Integer unCloseTotal;
-
-}
diff --git a/server/src/main/java/com/doumee/service/business/CarouselService.java b/server/src/main/java/com/doumee/service/business/CarouselService.java
index d3ca55a..8010b70 100644
--- a/server/src/main/java/com/doumee/service/business/CarouselService.java
+++ b/server/src/main/java/com/doumee/service/business/CarouselService.java
@@ -3,6 +3,9 @@
 import com.doumee.core.model.PageData;
 import com.doumee.core.model.PageWrap;
 import com.doumee.dao.business.model.Carousel;
+import com.doumee.dao.dto.FootDataDTO;
+import com.doumee.dao.vo.FootDataVO;
+
 import java.util.List;
 
 /**
@@ -106,4 +109,8 @@
      */
     void updateSortnum(Carousel carousel);
 
+    FootDataVO getFoodDataVO();
+
+    void updFoodDataVO(FootDataDTO footDataDTO);
+
 }
diff --git a/server/src/main/java/com/doumee/service/business/impl/CarouselServiceImpl.java b/server/src/main/java/com/doumee/service/business/impl/CarouselServiceImpl.java
index 0efc79c..7cc0fc1 100644
--- a/server/src/main/java/com/doumee/service/business/impl/CarouselServiceImpl.java
+++ b/server/src/main/java/com/doumee/service/business/impl/CarouselServiceImpl.java
@@ -10,14 +10,19 @@
 import com.doumee.core.utils.Utils;
 import com.doumee.dao.business.CarouselMapper;
 import com.doumee.dao.business.model.Carousel;
+import com.doumee.dao.dto.FootDataDTO;
+import com.doumee.dao.system.model.SystemDictData;
+import com.doumee.dao.vo.FootDataVO;
 import com.doumee.service.business.CarouselService;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.doumee.service.system.SystemDictDataService;
 import org.apache.shiro.SecurityUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
 import org.springframework.util.CollectionUtils;
 import org.springframework.util.StringUtils;
 
@@ -38,6 +43,9 @@
 
     @Autowired
     private SystemDictDataBiz systemDictDataBiz;
+
+    @Autowired
+    private SystemDictDataService systemDictDataService;
 
     @Override
     public Integer create(Carousel carousel) {
@@ -207,4 +215,78 @@
         QueryWrapper<Carousel> wrapper = new QueryWrapper<>(carousel);
         return carouselMapper.selectCount(wrapper);
     }
+
+
+
+    @Override
+    public FootDataVO getFoodDataVO(){
+        FootDataVO footDataVO = new FootDataVO();
+        footDataVO.setFootWords(systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.FOOT_WORDS).getCode());
+        footDataVO.setFootImgUrl(systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.FILE_DIR).getCode() + systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.FOOT_IMGURL).getCode());
+        footDataVO.setAddress(systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.ADDRESS).getCode());
+        footDataVO.setLinkMobile(systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.LINK_PHONE).getCode());
+        footDataVO.setLinkMobile(systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.LINK_MOBILE).getCode());
+        footDataVO.setSolveScheme(systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.SOLVE_SCHEME).getCode());
+        footDataVO.setWisdomSystem(systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.WISDOM_SYSTEM).getCode());
+        footDataVO.setServerTime(systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.SERVER_TIME).getCode());
+        return footDataVO;
+    }
+
+
+
+
+    @Override
+    @Transactional(rollbackFor = {Exception.class})
+    public void updFoodDataVO(FootDataDTO footDataDTO) {
+        SystemDictData footWords = systemDictDataBiz.queryByCode(Constants.SYSTEM, Constants.FOOT_WORDS);
+        if (Objects.nonNull(footWords)) {
+            footWords.setCode(footDataDTO.getFootWords());
+            systemDictDataBiz.updateById(footWords);
+        }
+
+        SystemDictData footImgUrl = systemDictDataBiz.queryByCode(Constants.SYSTEM, Constants.FOOT_IMGURL);
+        if (Objects.nonNull(footImgUrl)) {
+            footImgUrl.setCode(footDataDTO.getFootImgUrl());
+            systemDictDataBiz.updateById(footImgUrl);
+        }
+
+        SystemDictData linkPhone = systemDictDataBiz.queryByCode(Constants.SYSTEM, Constants.LINK_PHONE);
+        if (Objects.nonNull(linkPhone)) {
+            linkPhone.setCode(footDataDTO.getLinkPhone());
+            systemDictDataBiz.updateById(linkPhone);
+        }
+
+        SystemDictData linkMobile = systemDictDataBiz.queryByCode(Constants.SYSTEM, Constants.LINK_MOBILE);
+        if (Objects.nonNull(linkMobile)) {
+            linkMobile.setCode(footDataDTO.getLinkMobile());
+            systemDictDataBiz.updateById(linkMobile);
+        }
+
+        SystemDictData serverTime = systemDictDataBiz.queryByCode(Constants.SYSTEM, Constants.SERVER_TIME);
+        if (Objects.nonNull(serverTime)) {
+            serverTime.setCode(footDataDTO.getServerTime());
+            systemDictDataBiz.updateById(serverTime);
+        }
+
+        SystemDictData address = systemDictDataBiz.queryByCode(Constants.SYSTEM, Constants.ADDRESS);
+        if (Objects.nonNull(address)) {
+            address.setCode(footDataDTO.getAddress());
+            systemDictDataBiz.updateById(address);
+        }
+
+        SystemDictData solveScheme = systemDictDataBiz.queryByCode(Constants.SYSTEM, Constants.SOLVE_SCHEME);
+        if (Objects.nonNull(solveScheme)) {
+            solveScheme.setCode(footDataDTO.getSolveScheme());
+            systemDictDataBiz.updateById(solveScheme);
+        }
+
+        SystemDictData wisdomSystem = systemDictDataBiz.queryByCode(Constants.SYSTEM, Constants.WISDOM_SYSTEM);
+        if (Objects.nonNull(wisdomSystem)) {
+            wisdomSystem.setCode(footDataDTO.getWisdomSystem());
+            systemDictDataBiz.updateById(wisdomSystem);
+        }
+    }
+
+
+
 }

--
Gitblit v1.9.3