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