perryhsu
2020-10-17 a543f4de1c91ef6f43aace92975c6cf28de23618
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
package com.fgkj.mapper.impl;
 
import java.util.List;
 
public interface User_logMapper {
    /*private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");*/
 
 
    //用户的操作记录下来
    public boolean add(Object obj);
 
    //用户的操作记录下来(记录多条)
    public boolean addPro(Object obj);
 
    public boolean update(Object obj);
 
    public boolean del(Object obj);
 
    public List searchAll();
    
    //5.4用户操作记录查询(根据用户名和操作类型)
    public List serchByCondition1(Object obj);
 
    //5.4用户操作记录查询(根据用户名和操作类型)
    @SuppressWarnings("unchecked")
    public List serchByCondition(Object obj);
 
    //0.2当前时间的操作记录
    public List serchByInfo(Object obj);
    
 
    /*public static void main(String[] args) throws ParseException {
        User_logMapper uimpl=new User_logMapper();
        Batt_User_Permit bup=new Batt_User_Permit();
        User_inf uinf=new User_inf();
        uinf.setUName("");
        User_log ulog=new User_log();
        ulog.setUOprateType(0);
        
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        Date date1 = sdf.parse("2016-09-01");
        Date date2 = sdf.parse("2025-01-01");
        ulog.setUOprateDay(ActionUtil.getSimpDate(date1));
        ulog.setUOprateDay1(ActionUtil.getSimpDate(date1));
        
        Page page=new Page();
        page.setPageCurr(1);
        page.setPageSize(10);
        
        bup.setUinf(uinf);
        bup.setUlog(ulog);
        bup.setPage(page);
        
        //List<Batt_User_Permit> list=uimpl.serchByCondition(bup);
        List<Batt_User_Permit> list=uimpl.serchByInfo(ulog);
        System.out.println(list.size());
        for (Batt_User_Permit b : list) {
            System.out.println(b.getUlog());
        }
    }*/
}