package com.fgkj.actions;
|
|
import com.fgkj.dto.BattInf;
|
import com.fgkj.dto.ServiceModel;
|
import com.fgkj.services.Batt_rtstateService;
|
|
public class Batt_rtstateAction extends ActionUtil{
|
private Batt_rtstateService service=new Batt_rtstateService();
|
private String result;
|
private String json;
|
|
|
//根据电池组信息查询组端信息
|
public String serchByCondition() {
|
BattInf binf=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattInf.class);
|
ServiceModel model=service.serchByCondition(binf);
|
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 serchDisOrChargrNew() {
|
BattInf binf=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattInf.class);
|
ServiceModel model=service.serchDisOrChargrNew(binf);
|
result=tojson(model);
|
return SUCCESS;
|
}
|
public String getResult() {
|
return result;
|
}
|
public void setJson(String json) {
|
this.json = json;
|
}
|
}
|