增加换热站信息查询接口
This commit is contained in:
parent
6235bbb341
commit
76abbaa08e
|
|
@ -1,5 +1,6 @@
|
||||||
package org.jeecg.exportapi.api;
|
package org.jeecg.exportapi.api;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.jeecg.common.api.vo.Result;
|
import org.jeecg.common.api.vo.Result;
|
||||||
|
|
@ -33,6 +34,7 @@ public class HomeApi {
|
||||||
@Autowired
|
@Autowired
|
||||||
private HeatsourceService heatsourceService;
|
private HeatsourceService heatsourceService;
|
||||||
//换热站
|
//换热站
|
||||||
|
@Autowired
|
||||||
private HeatsourcestationService heatsourcestationService;
|
private HeatsourcestationService heatsourcestationService;
|
||||||
//各信息(温度、压力、热量、流量等)
|
//各信息(温度、压力、热量、流量等)
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|
@ -100,11 +102,32 @@ public class HomeApi {
|
||||||
Map<String,Object> result = new HashMap<>();
|
Map<String,Object> result = new HashMap<>();
|
||||||
|
|
||||||
//城区锅炉房供回水温度
|
//城区锅炉房供回水温度
|
||||||
LambdaQueryChainWrapper<Heatanalysis> qw = heatanalysisService.lambdaQuery();
|
QueryWrapper<Heatanalysis> qw = new QueryWrapper<>();
|
||||||
qw.eq(Heatanalysis::getDelFlag,"0");
|
qw.eq("del_flag","0");
|
||||||
|
qw.isNull("view004");
|
||||||
// qw.eq(Heatanalysis::getRegionType,"城区");
|
// qw.eq(Heatanalysis::getRegionType,"城区");
|
||||||
qw.orderByAsc(Heatanalysis::getId);
|
qw.orderByAsc("id");
|
||||||
List<Heatanalysis> list = qw.list();
|
List<Heatanalysis> list = heatanalysisService.list(qw);
|
||||||
|
result.put("data",list);
|
||||||
|
return Result.ok(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 锅炉房指标
|
||||||
|
* @param dto
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = "/glfzb", method = RequestMethod.POST)
|
||||||
|
public Result<?> glfzb(HomeApiEntity dto) {
|
||||||
|
Map<String,Object> result = new HashMap<>();
|
||||||
|
|
||||||
|
//城区锅炉房供回水温度
|
||||||
|
QueryWrapper<Heatanalysis> qw = new QueryWrapper<>();
|
||||||
|
qw.eq("del_flag","0");
|
||||||
|
qw.isNotNull("view004");
|
||||||
|
// qw.eq(Heatanalysis::getRegionType,"城区");
|
||||||
|
qw.orderByAsc("id");
|
||||||
|
List<Heatanalysis> list = heatanalysisService.list(qw);
|
||||||
result.put("data",list);
|
result.put("data",list);
|
||||||
return Result.ok(result);
|
return Result.ok(result);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue