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
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;
    }
    
}