1
81041
2019-06-20 ab3c4acf83f54f8449ca8664c4a2bb79bd30f297
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
39
40
41
42
43
44
45
46
47
package com.fgkj.actions;
 
import com.fgkj.dto.Batt_Maint_Dealarm;
import com.fgkj.dto.Batttestdatastop;
import com.fgkj.dto.ServiceModel;
import com.fgkj.services.BatttestdatastopService;
import com.opensymphony.xwork2.ActionSupport;
 
public class BatttestdatastopAction extends ActionSupport{
    private BatttestdatastopService service = new BatttestdatastopService();
    private Batttestdatastop btds;
    private String result;
    
    public String findByInfo(){
        //System.out.println(btds);
        ServiceModel model=service.serchByCondition(btds);
        result = ActionUtil.tojson(model);
        return SUCCESS;
    }
    
    //7.1电池放电落后单体筛选,并将电容告警的电池组加到告警表中
    public String serchBadBatt(){
        Batt_Maint_Dealarm bmd = ActionUtil.getGson("yyyy-MM-dd").fromJson(result, Batt_Maint_Dealarm.class);
        //System.out.println(bmd);
        ServiceModel  model = service.serchBadBatt(bmd);
        result = ActionUtil.tojson(model);
        return SUCCESS;
    }
 
    public String getResult() {
        return result;
    }
 
    public void setBtds(Batttestdatastop btds) {
        this.btds = btds;
    }
 
    public Batttestdatastop getBtds() {
        return btds;
    }
 
    public void setResult(String result) {
        this.result = result;
    }
    
    
}