📄 userdao.java
字号:
/*
* 创建日期 2006-4-26
*
* TODO 要更改此生成的文件的模板,请转至
* 窗口 - 首选项 - Java - 代码样式 - 代码模板
*/
package com.tongtu.Dao.user;
import java.util.ArrayList;
import java.util.List;
import com.tongtu.util.LogInfo;
import com.tongtu.util.Page;
import com.tongtu.util.UserInfo;
/**
* @author 朱闰
*
* TODO 要更改此生成的类型注释的模板,请转至
* 窗口 - 首选项 - Java - 代码样式 - 代码模板
*/
public interface UserDAO {
/**
* 分页显示发布信息列表
* @param start
* @param count
* @param secondtypeid
* @param tablename
* @return
*/
// public Page getArticleList(int start, int count,int bigtypeid,String tablename);
/**
* 用户登录验证
*/
public UserInfo SystemLogin(String userName ,String passWord);
//添加用户信息
public boolean addUserInfo(UserInfo ui);
//获取所有用户
public List getAllUserList();
/**
* 分页显示用户列表
* @param start
* @param count
* @return
*/
public Page getUserList(int start, int count,UserInfo user);
/**
* 获取所有用户总数
* @return
*/
public int getAllUserCount();
/**
* 根据用户ID获取用户信息
* @param userId
* @return
*/
public UserInfo getUserInfoById(int userId);
/**
* 根据用户ID更新用户信息
* @param ui
* @param userId
* @return
*/
public boolean updateUserInfo(UserInfo ui,int userId);
/**
* 添加操作记录信息
* @param log
* @return
*/
public boolean addLogInfo(LogInfo log);
/**
* 分页显示用户操作记录信息列表
* @param start
* @param count
* @return
*/
public Page getLogList(int start ,int count);
/**
* 获取操作记录总数
* @return
*/
public int getLogCount();
// 添加新县(区)
public boolean addCounty(String countyCode,String name) ;
/**
* 根据城市编码获取所有县区信息
* @param cityCode
* @return
*/
public List getCountyListByCityCode(String cityCode);
/**
* 根据县区编码获取县区名称
* @param name
* @return
*/
public String getCountyNameByCode(String code);
/**
* 判断用户名是否重复
* @param userName
* @return
*/
public int IsHasUser(String userName);
/**
* 更改密码
* @param userId
* @return
*/
public boolean ChangePassWord(int userId,String newPass);
/**
* 更改当前用户信息
* @param userId
* @param userinfo
* @return
*/
public boolean UpdateCurrentUser(int userId,UserInfo ui);
/**
* 根据用户ID删除指定用户
*
* @param userId
* @return
*/
public boolean delUser(int userId) ;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -