From 6cca8f6b62cff87bde6108f0fddc1822e865a8ef Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期二, 22 七月 2025 18:10:26 +0800
Subject: [PATCH] 大屏替换路径

---
 ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/RegionController.java |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 52 insertions(+), 0 deletions(-)

diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/RegionController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/RegionController.java
index 2513b90..56faece 100644
--- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/RegionController.java
+++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/RegionController.java
@@ -6,13 +6,20 @@
 import com.ruoyi.common.security.annotation.Logical;
 import com.ruoyi.common.security.annotation.RequiresPermissions;
 import com.ruoyi.other.api.domain.Region;
+import com.ruoyi.other.api.domain.TSystemConfiguration;
+import com.ruoyi.other.mapper.TScreenContentMapper;
 import com.ruoyi.other.service.IRegionService;
+import com.ruoyi.other.service.TScreenContentService;
+import com.ruoyi.other.service.TSystemConfigurationService;
 import io.swagger.annotations.ApiImplicitParam;
 import io.swagger.annotations.ApiImplicitParams;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.web.bind.annotation.*;
 
 import javax.annotation.Resource;
+import java.math.BigDecimal;
+import java.util.Arrays;
+import java.util.HashMap;
 import java.util.List;
 
 /**
@@ -25,6 +32,12 @@
 	
 	@Resource
 	private IRegionService regionService;
+
+	@Resource
+	private TSystemConfigurationService tSystemConfigurationService;
+
+	@Resource
+	private TScreenContentMapper screenContentMapper;
 	
 	
 	
@@ -50,4 +63,43 @@
 		Region list = regionService.getOne(new LambdaQueryWrapper<Region>().eq(Region::getCode, code));
 		return R.ok(list);
 	}
+
+	@ResponseBody
+	@GetMapping("/getTSystemConfiguration")
+	public R<List<TSystemConfiguration>> getTSystemConfiguration(){
+		List<TSystemConfiguration> list = tSystemConfigurationService.list(new LambdaQueryWrapper<TSystemConfiguration>().in(TSystemConfiguration::getType, 4, 5));
+		return R.ok(list);
+	}
+
+
+	@GetMapping(value = "/getCarDisCharge")
+	@ResponseBody
+	public R<BigDecimal> getCarDisCharge(){
+		BigDecimal carDisCharge = screenContentMapper.getCarDisCharge(Arrays.asList(25,26));
+		return R.ok(carDisCharge);
+	}
+
+	@PostMapping(value = "/getGreenElectricity")
+	@ResponseBody
+	public R<BigDecimal> getGreenElectricity(@RequestBody List<Integer> siteIds){
+		BigDecimal greenElectricity = screenContentMapper.getGreenElectricity(siteIds);
+		return R.ok(greenElectricity);
+	}
+
+
+	@PostMapping(value = "/carportData")
+	@ResponseBody
+	public void carportData(String parkingPlace){
+		String[] split = parkingPlace.split("_");
+		Integer parkingPlace1 = Integer.parseInt(split[0]);
+		Integer remainPlace = Integer.parseInt(split[1]);
+		screenContentMapper.carportData(parkingPlace1,remainPlace);
+	}
+
+	@GetMapping(value = "/getCarportData")
+	@ResponseBody
+	public R<HashMap<String, Object>> getCarportData(){
+		HashMap<String, Object> carportData = screenContentMapper.getCarportData();
+		return R.ok(carportData);
+	}
 }

--
Gitblit v1.7.1