81041
2018-10-15 6a164ed3a382326e1f246f4629e6d2ffe276ece2
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
29
30
31
32
33
34
35
36
37
38
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;
    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;
    }
    
    
    
 
}