package com.fgkj.actions; import java.util.List; import com.fgkj.dto.BattInf; import com.fgkj.dto.Batt_Maint_Dealarm; import com.fgkj.dto.Batttestdata_inf; import com.fgkj.dto.ServiceModel; import com.fgkj.services.Batt_MaintService; import com.google.gson.Gson; import com.opensymphony.xwork2.ActionSupport; public class Batt_MaintAction extends ActionSupport{ private Batt_MaintService service=new Batt_MaintService(); private String result; private Batt_Maint_Dealarm bmd; //1.3根据电池组id查询电池的电导和充放电信息 public String serchMon_num(){ ServiceModel model=service.serchMon_num(bmd); result=ActionUtil.tojson(model); return SUCCESS; } public static void main(String[] args) { new Batt_MaintAction().serchMon_num(); } public Batt_MaintService getService() { return service; } public void setService(Batt_MaintService service) { this.service = service; } public String getResult() { return result; } public void setResult(String result) { this.result = result; } public Batt_Maint_Dealarm getBmd() { return bmd; } public void setBmd(Batt_Maint_Dealarm bmd) { this.bmd = bmd; } }