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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package com.fgkj.actions;
 
import java.util.List;
 
import com.fgkj.dto.Batt_User_Permit;
import com.fgkj.dto.ServiceModel;
import com.fgkj.dto.User_log;
import com.fgkj.services.User_logService;
import com.opensymphony.xwork2.ActionSupport;
 
public class User_logAction extends ActionSupport{
    private User_logService service = new User_logService();
    private Batt_User_Permit bup;
    private User_log ulog;
    private String result;
    
    //5.4用户操作记录查询(根据用户名和操作类型以及操作时间)
    public String serchByCondition(){
        //System.out.println(bup.getUlog());
        bup = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Batt_User_Permit.class);
        ServiceModel model=service.serchByCondition(bup);
        result=ActionUtil.tojson(model);
        return SUCCESS;
    }
    
    //查询所有的用户操作记录
    public String searchAll(){
        ServiceModel model=service.searchAll();
        result=ActionUtil.tojson(model);
        return SUCCESS;
    }
 
    //0.2当前时间的操作记录
    public String serchByInfo() {
        //System.out.println(ulog+"******");
        ServiceModel model=service.serchByInfo(ulog);
        result=ActionUtil.tojson(model);
        return SUCCESS;
    }
    
    public Batt_User_Permit getBup() {
        return bup;
    }
 
    public void setBup(Batt_User_Permit bup) {
        this.bup = bup;
    }
 
    public String getResult() {
        return result;
    }
 
    public void setResult(String result) {
        this.result = result;
    }
 
    public User_log getUlog() {
        return ulog;
    }
 
    public void setUlog(User_log ulog) {
        this.ulog = ulog;
    }
}