解决无法启动
This commit is contained in:
parent
0a3a6b169f
commit
6235bbb341
|
|
@ -110,6 +110,8 @@ public class ShiroConfig {
|
|||
filterChainDefinitionMap.put("/sys/getQrcodeToken/**", "anon"); //监听扫码
|
||||
filterChainDefinitionMap.put("/sys/checkAuth", "anon"); //授权接口排除
|
||||
filterChainDefinitionMap.put("/openapi/call/**", "anon"); // 开放平台接口排除
|
||||
// filterChainDefinitionMap.put("/exportapi/homeApi/**", "anon"); // 首页、大屏暴露接口
|
||||
|
||||
|
||||
//update-begin--Author:scott Date:20221116 for:排除静态资源后缀
|
||||
filterChainDefinitionMap.put("/", "anon");
|
||||
|
|
|
|||
|
|
@ -10,5 +10,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>jeecg-system-local-api</artifactId>
|
||||
<dependencies>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
|
@ -0,0 +1,112 @@
|
|||
package org.jeecg.exportapi.api;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.exportapi.entity.HomeApiEntity;
|
||||
import org.jeecg.modules.heating.entity.Heatanalysis;
|
||||
import org.jeecg.modules.heating.entity.Heatsource;
|
||||
import org.jeecg.modules.heating.entity.Heatsourcestation;
|
||||
import org.jeecg.modules.heating.entity.Thermalcompany;
|
||||
import org.jeecg.modules.heating.service.HeatanalysisService;
|
||||
import org.jeecg.modules.heating.service.HeatsourceService;
|
||||
import org.jeecg.modules.heating.service.HeatsourcestationService;
|
||||
import org.jeecg.modules.heating.service.ThermalcompanyService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/exportapi/homeApi")
|
||||
public class HomeApi {
|
||||
|
||||
//公司
|
||||
@Autowired
|
||||
private ThermalcompanyService thermalcompanyService;
|
||||
//锅炉房
|
||||
@Autowired
|
||||
private HeatsourceService heatsourceService;
|
||||
//换热站
|
||||
private HeatsourcestationService heatsourcestationService;
|
||||
//各信息(温度、压力、热量、流量等)
|
||||
@Autowired
|
||||
private HeatanalysisService heatanalysisService;
|
||||
|
||||
/**
|
||||
* 城区锅炉房数量
|
||||
* 城区换热站数量
|
||||
* 郊县数量(郊县公司数量)
|
||||
* 郊县锅炉房数量
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value = "/slcx", method = RequestMethod.POST)
|
||||
public Result<?> slcx(HomeApiEntity dto) {
|
||||
Map<String,Object> result = new HashMap<>();
|
||||
|
||||
//城区锅炉房数量
|
||||
LambdaQueryChainWrapper<Heatsource> qw1 = heatsourceService.lambdaQuery();
|
||||
qw1.eq(Heatsource::getRegionType,"城区");
|
||||
qw1.eq(Heatsource::getDelFlag,"0");
|
||||
qw1.orderByAsc(Heatsource::getId);
|
||||
List<Heatsource> heatsourceCQList = qw1.list();
|
||||
result.put("cqglfsl",heatsourceCQList.size());
|
||||
|
||||
//城区换热站数量
|
||||
LambdaQueryChainWrapper<Heatsourcestation> qw2 = heatsourcestationService.lambdaQuery();
|
||||
qw2.eq(Heatsourcestation::getDelFlag,"0");
|
||||
qw2.orderByAsc(Heatsourcestation::getId);
|
||||
List<Heatsourcestation> heatsourcestationList = qw2.list();
|
||||
result.put("cqhrzsl",heatsourcestationList.size());
|
||||
|
||||
//郊县数量(郊县公司数量)
|
||||
LambdaQueryChainWrapper<Thermalcompany> qw3 = thermalcompanyService.lambdaQuery();
|
||||
qw3.eq(Thermalcompany::getRegionType,"城区");
|
||||
qw3.eq(Thermalcompany::getDelFlag,"0");
|
||||
qw3.orderByAsc(Thermalcompany::getId);
|
||||
List<Thermalcompany> thermalcompanyList = qw3.list();
|
||||
result.put("jxsl",thermalcompanyList.size());
|
||||
|
||||
//郊县锅炉房数量
|
||||
LambdaQueryChainWrapper<Heatsource> qw4 = heatsourceService.lambdaQuery();
|
||||
qw4.eq(Heatsource::getRegionType,"郊县");
|
||||
qw4.eq(Heatsource::getDelFlag,"0");
|
||||
qw4.orderByAsc(Heatsource::getId);
|
||||
List<Heatsource> heatsourceJXList = qw4.list();
|
||||
result.put("jxglfsl",heatsourceJXList.size());
|
||||
|
||||
return Result.ok(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 数据查询 一次网
|
||||
* 城区锅炉房供回水温度
|
||||
* 郊县供回水温度
|
||||
* 郊县锅炉房瞬时热量
|
||||
* 郊县锅炉房瞬时流量
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value = "/cqglfgswd", method = RequestMethod.POST)
|
||||
public Result<?> cqglfgswd(HomeApiEntity dto) {
|
||||
Map<String,Object> result = new HashMap<>();
|
||||
|
||||
//城区锅炉房供回水温度
|
||||
LambdaQueryChainWrapper<Heatanalysis> qw = heatanalysisService.lambdaQuery();
|
||||
qw.eq(Heatanalysis::getDelFlag,"0");
|
||||
// qw.eq(Heatanalysis::getRegionType,"城区");
|
||||
qw.orderByAsc(Heatanalysis::getId);
|
||||
List<Heatanalysis> list = qw.list();
|
||||
result.put("data",list);
|
||||
return Result.ok(result);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
package org.jeecg.exportapi.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class HomeApiEntity {
|
||||
}
|
||||
Loading…
Reference in New Issue