大屏,换热站列表数据调整查询的sql语句
This commit is contained in:
parent
70877a72ac
commit
b866b28743
|
|
@ -19,6 +19,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.Calendar;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
|
@ -122,12 +123,17 @@ public class HomeApi {
|
|||
public Result<?> glfzb(HomeApiEntity dto) {
|
||||
Map<String,Object> result = new HashMap<>();
|
||||
|
||||
Calendar c = Calendar.getInstance();
|
||||
c.add(Calendar.HOUR_OF_DAY,-1);
|
||||
|
||||
//城区锅炉房供回水温度
|
||||
QueryWrapper<Heatanalysis> qw = new QueryWrapper<>();
|
||||
qw.eq("del_flag","0");
|
||||
qw.isNotNull("view004");
|
||||
qw.gt("datatime",c.getTime());
|
||||
// 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