package com.fgkj.actions.Ld9;
|
|
import com.fgkj.actions.ActionUtil;
|
import com.fgkj.dto.BadLd9_mon_flag;
|
import com.fgkj.dto.ServiceModel;
|
import com.fgkj.services.Ld9.BadLd9_mon_flagService;
|
|
public class BadLd9_mon_flagAction extends ActionUtil{
|
private BadLd9_mon_flagService service = new BadLd9_mon_flagService();
|
private String result;
|
private String json;
|
|
//往标识表中插入一笔数据
|
public String add() {
|
BadLd9_mon_flag monflag = getGson().fromJson(json, BadLd9_mon_flag.class);
|
ServiceModel model = service.add(monflag);
|
result = tojson(model);
|
return SUCCESS;
|
}
|
|
public String getResult() {
|
return result;
|
}
|
|
public void setJson(String json) {
|
this.json = json;
|
}
|
}
|