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());
|
}
|
}*/
|
}
|