DELL
2025-01-10 d8ebb73be7e75f4c995827e30edc76dcc823cc36
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
package com.dev.lock.data;
 
import java.util.Date;
 
public class ElectLock_Ctl_Log {
    
    public int lock_id;                //'电子锁ID',
    public int ctl_type;            //'操作类型[1-清空所有授权ID卡 2-远程开锁  3-远程重启 4-设置锁具地址 5-添加授权ID 6-移除授权ID]',
    public boolean ctl_result;        //'操作结果[0-失败  1-成功]',
    public Date ctl_time;            //'操作时间',
    public int ctl_id_card;            //'添加或者移除的授权ID卡号',
    public String ctl_uname = "";    //操作用户名
    
    public ElectLock_Ctl_Log() {
        this.ctl_time = new Date();
    }
    
    public ElectLock_Ctl_Log(int lock_id,int ctl_type,boolean ctl_result) {
        this.lock_id = lock_id;
        this.ctl_type = ctl_type;
        this.ctl_result = ctl_result;
        this.ctl_time = new Date();
    }
    
//    public ElectLock_Ctl_Log(int lock_id,int ctl_type,boolean ctl_result,int ctl_id_card) {
//        this.lock_id = lock_id;
//        this.ctl_type = ctl_type;
//        this.ctl_result = ctl_result;
//        this.ctl_id_card = ctl_id_card;
//        this.ctl_time = new Date();
//    }
 
    public ElectLock_Ctl_Log(int lock_id,int ctl_type,boolean ctl_result,int ctl_id_card,String ctl_uname) {
        this.lock_id = lock_id;
        this.ctl_type = ctl_type;
        this.ctl_result = ctl_result;
        this.ctl_id_card = ctl_id_card;
        this.ctl_time = new Date();
        this.ctl_uname = ctl_uname;
    }
    
}