package com.fgkj.actions.ram; import com.fgkj.actions.ActionUtil; import com.fgkj.dto.ServiceModel; import com.fgkj.dto.ram.Fbs9100s_dfu_state; import com.fgkj.services.ram.Fbs9100s_dfu_stateService; public class Fbs9100s_dfu_stateAction extends ActionUtil{ private Fbs9100s_dfu_stateService service = new Fbs9100s_dfu_stateService(); private String json; private String result; //升级插入 public String add(){ Fbs9100s_dfu_state dfu=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Fbs9100s_dfu_state.class); ServiceModel model=service.add(dfu); result=tojson(model); return SUCCESS; } //升级确认 public String update(){ Fbs9100s_dfu_state dfu=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Fbs9100s_dfu_state.class); ServiceModel model=service.update(dfu); result=tojson(model); return SUCCESS; } public String getResult() { return result; } public void setJson(String json) { this.json = json; } }