package com.fgkj.actions;
|
|
import com.fgkj.dto.BattInf;
|
import com.fgkj.dto.Devtmp_record;
|
import com.fgkj.dto.ServiceModel;
|
import com.fgkj.services.Devtmp_recordService;
|
|
public class Devtmp_recordAction extends ActionUtil{
|
private Devtmp_recordService service=new Devtmp_recordService();
|
private String json;
|
private String result;
|
|
|
//设备温度记录查询<根据设备id查>
|
public String serchByCondition() {
|
Devtmp_record dre=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Devtmp_record.class);
|
ServiceModel model=service.serchByCondition(dre);
|
result=tojson(model);
|
return SUCCESS;
|
}
|
//批量显示每个站的温度最大值
|
public String serchByInfo() {
|
BattInf binf=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattInf.class);
|
ServiceModel model=service.serchByInfo(binf);
|
result=tojson(model);
|
return SUCCESS;
|
}
|
|
|
|
|
|
public String getResult() {
|
return result;
|
}
|
public void setJson(String json) {
|
this.json = json;
|
}
|
|
|
|
}
|