package com.fgkj.actions;
|
|
import com.fgkj.dto.Batt_Maint_Dealarm;
|
import com.fgkj.dto.Batttestdatastop;
|
import com.fgkj.dto.ServiceModel;
|
import com.fgkj.services.BatttestdatastopService;
|
import com.opensymphony.xwork2.ActionSupport;
|
|
public class BatttestdatastopAction extends ActionSupport{
|
private BatttestdatastopService service = new BatttestdatastopService();
|
private Batttestdatastop btds;
|
private String result;
|
|
public String findByInfo(){
|
//System.out.println(btds);
|
ServiceModel model=service.serchByCondition(btds);
|
result = ActionUtil.tojson(model);
|
return SUCCESS;
|
}
|
|
//7.1电池放电落后单体筛选,并将电容告警的电池组加到告警表中
|
public String serchBadBatt(){
|
Batt_Maint_Dealarm bmd = ActionUtil.getGson("yyyy-MM-dd").fromJson(result, Batt_Maint_Dealarm.class);
|
//System.out.println(bmd);
|
ServiceModel model = service.serchBadBatt(bmd);
|
result = ActionUtil.tojson(model);
|
return SUCCESS;
|
}
|
|
public String getResult() {
|
return result;
|
}
|
|
public void setBtds(Batttestdatastop btds) {
|
this.btds = btds;
|
}
|
|
public Batttestdatastop getBtds() {
|
return btds;
|
}
|
|
public void setResult(String result) {
|
this.result = result;
|
}
|
|
|
}
|