package com.fgkj.actions.Ld9; import java.util.List; import com.fgkj.actions.ActionUtil; import com.fgkj.dto.Ld9testdatastop; import com.fgkj.dto.ServiceModel; import com.fgkj.services.Ld9.Ld9testdataService; import com.fgkj.services.Ld9.Ld9testdatastopService; public class Ld9testdatastopAction extends ActionUtil{ private String json; private String result; private Ld9testdatastopService service=new Ld9testdatastopService(); //历史监测容量的柱状图 public String serchByCondition(){ Ld9testdatastop ld9=getGson().fromJson(json, Ld9testdatastop.class); ServiceModel model=service.serchByCondition(ld9); result=tojson(model); return SUCCESS; } //根据电池组id;单体编号,test_record_count查询测试结束的信息 public String serchByInfo(){ Ld9testdatastop ld9=getGson().fromJson(json, Ld9testdatastop.class); ServiceModel model=service.serchByInfo(ld9); result=tojson(model); return SUCCESS; } public String getResult() { return result; } public void setJson(String json) { this.json = json; } }