lxw
2020-07-11 9db52f2f2dd3665fe9da1ae5657e0167c3a34d40
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
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;
    }
    
}