| | |
| | | import com.fgkj.dao.BaseDAO;
|
| | | import com.fgkj.dao.BaseDAOFactory;
|
| | | import com.fgkj.dao.impl.User_logImpl;
|
| | | import com.fgkj.dto.Batt_User_Permit;
|
| | | import com.fgkj.dto.Page;
|
| | | import com.fgkj.dto.ServiceModel;
|
| | | import com.fgkj.dto.User_inf;
|
| | |
| | | }
|
| | | return model;
|
| | | }
|
| | | //5.4用户操作记录查询(根据用户名和操作类型)
|
| | | /*//5.4用户操作记录查询(根据用户名和操作类型)
|
| | | public ServiceModel serchByCondition(Object obj) {
|
| | | List<Batt_User_Permit> list = dao.serchByCondition(obj);
|
| | | // for (Batt_User_Permit b : list) {
|
| | |
| | | // System.out.println(model);
|
| | | return model;
|
| | | }
|
| | |
|
| | | */
|
| | | public ServiceModel searchAll() {
|
| | | List list = dao.searchAll();
|
| | | // for (Object object : list) {
|
| | |
| | | return model;
|
| | | }
|
| | |
|
| | | //0.2当前时间的操作记录
|
| | | /*//0.2当前时间的操作记录
|
| | | public ServiceModel serchByInfo(Object obj){
|
| | | User_log ulog=(User_log) obj;
|
| | | List<Batt_User_Permit> list=dao.serchByInfo(ulog);
|
| | |
| | | }
|
| | | return model;
|
| | | }
|
| | |
|
| | | */
|
| | |
|
| | | public static void main(String[] args) throws ParseException {
|
| | | User_logService us = new User_logService();
|
| | | 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("2000-01-01");
|
| | | Date date2 = sdf.parse("2025-01-01");
|
| | | ulog.setUOprateDay(ActionUtil.getSimpDate(date1));
|
| | | ulog.setUOprateDay1(ActionUtil.getSimpDate(date2));
|
| | | |
| | | Page page=new Page();
|
| | | page.setPageCurr(1);
|
| | | page.setPageSize(10);
|
| | | |
| | | bup.setUinf(uinf);
|
| | | bup.setUlog(ulog);
|
| | | bup.setPage(page);
|
| | | //us.serchByCondition(bup);
|
| | | //us.searchAll();
|
| | | us.serchByInfo(ulog);
|
| | | }
|
| | |
|
| | | }
|