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
package com.fgkj.actions;
 
import com.fgkj.dto.BattInf;
import com.fgkj.dto.ServiceModel;
import com.fgkj.services.App_bts_battgroupService;
import com.fgkj.services.App_bts_comm_taskService;
 
public class App_bts_battgroupAction extends ActionUtil{
    private App_bts_battgroupService service = new App_bts_battgroupService();
    private String json;
    private String result;
    
    
    //根据设备id查询(uid放在num中)
    public String serchByCondition(){
        BattInf binf=getGson("").fromJson(json, BattInf.class);
        /*User_inf uinf=(User_inf) getUser();
        binf.setNum(uinf.getUId());*/
        ServiceModel model=service.serchByCondition(binf);
        result=tojson(model);
        return SUCCESS;
    }
    public String getResult() {
        return result;
    }
    public void setJson(String json) {
        this.json = json;
    }
    
    
    
}