whyclj
2019-10-29 1c0469e45346d464e0c5672ee68f9ecd4fb6be7c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
    }
}