package com.fgkj.actions; import com.fgkj.dto.Batt_maint_process; import com.fgkj.dto.ServiceModel; import com.fgkj.services.Batt_maint_processService; import com.opensymphony.xwork2.ActionSupport; public class Batt_maint_processAction extends ActionSupport{ private Batt_maint_processService service=new Batt_maint_processService(); private Batt_maint_process bmp; private String result; //3.1根据id查所有编辑信息 public String serchByCondition(){ bmp=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Batt_maint_process.class); ServiceModel model=service.serchByCondition(bmp); result=ActionUtil.tojson(model); return SUCCESS; } public String getResult() { return result; } public void setResult(String result) { this.result = result; } public void setBmp(Batt_maint_process bmp) { this.bmp = bmp; } }