| | |
| | | |
| | | import com.fgkj.dto.Batt_User_Permit; |
| | | import com.fgkj.dto.User_battgroup_baojigroup; |
| | | import com.fgkj.dto.User_battgroup_baojigroup_battgroup; |
| | | import com.fgkj.dto.User_inf; |
| | | import org.apache.ibatis.annotations.Delete; |
| | | import org.apache.ibatis.annotations.Insert; |
| | |
| | | public int del(User_inf obj); |
| | | |
| | | //首页会根据uname查询用户信息 |
| | | public List serchByCondition(Object obj); |
| | | @Select("select uid,uname,uSnId,upassword,unote from db_user.tb_user_inf where uname=#{uName}") |
| | | public List<User_inf> serchByCondition(User_inf obj); |
| | | |
| | | //查询当前库中存在的name名字的排序(模糊) |
| | | public List serchinfoUname() ; |
| | | @Select("select uid,uname from db_user.tb_user_inf where uname like '%name%' order by uname") |
| | | public List<User_inf> serchinfoUname() ; |
| | | |
| | | //5.3根据uid查包机组 |
| | | @Select("select distinct(baoji_group_name) " + |
| | |
| | | public List<User_battgroup_baojigroup> serchByInfo(User_inf obj); |
| | | |
| | | //根据battgroupid查对应的包机人 |
| | | public List searchByBattGroupId(Object obj); |
| | | @Select("select distinct(db_user.tb_user_inf.uid),db_user.tb_user_inf.uName,db_user.tb_user_battgroup_baojigroup_battgroup.BattGroupId " + |
| | | "from db_user.tb_user_inf ,db_user.tb_user_battgroup_baojigroup_battgroup,db_user.tb_user_battgroup_baojigroup_usr " + |
| | | "where db_user.tb_user_battgroup_baojigroup_battgroup.baoji_group_id=db_user.tb_user_battgroup_baojigroup_usr.baoji_group_id " + |
| | | "and db_user.tb_user_battgroup_baojigroup_usr.uId=db_user.tb_user_inf.uid " + |
| | | "and db_user.tb_user_battgroup_baojigroup_battgroup.BattGroupId=#{battGroupId} and db_user.tb_user_inf.uBaojiUsr=1 ") |
| | | public List<User_inf> searchByBattGroupId(User_battgroup_baojigroup_battgroup obj); |
| | | |
| | | //根据uId查用户姓名 |
| | | @Select("select UName from db_user.tb_user_inf where uId=#{uId}") |
| | | public List<User_inf> serchUname(User_inf uinf); |
| | | |
| | | //查询所有uid在字符串objs中的所有用户名,并且用,连接多个用户名 |
| | | public List searchUnams(Object objs); |
| | | |
| | | @Select("SELECT GROUP_CONCAT(DISTINCT(uname))as unames from db_user.tb_user_inf where locate(uid,#{value});") |
| | | public String searchUnams(String value); |
| | | |
| | | //5.1查询所有员工信息 |
| | | public List searchAll2(Batt_User_Permit obj) ; |
| | |
| | | public boolean resetPassword(User_inf obj); |
| | | |
| | | //根据员工信息和员工编号去匹配合适的员工 |
| | | @Select("select SQL_CALC_FOUND_ROWS distinct(uid),uSnId,uName,uShenFenId,uEmployeeId,uTelephone,uMobilephone,uEmail,uAddr,uBirthday,uAccessionDay,uSex,uDepartment,uProTitle,uAuthority,uJobGroup,uDuties,uTasks,uBaojiusr,uNote" + |
| | | @Select("select distinct(uid),uSnId,uName,uShenFenId,uEmployeeId,uTelephone,uMobilephone,uEmail,uAddr,uBirthday,uAccessionDay,uSex,uDepartment,uProTitle,uAuthority,uJobGroup,uDuties,uTasks,uBaojiusr,uNote" + |
| | | " from db_user.tb_user_inf " + |
| | | " where uName like '${uinf.uName}' or uEmployeeId like '${uinf.uEmployeeId}' " + |
| | | " order by uid limit #{pageBean.pageCurr},#{pageBean.pageSize}") |
| | | " order by uid ") |
| | | public List<User_inf> searchByNameOrId(Batt_User_Permit obj); |
| | | |
| | | //包机组重做(穿梭框)查询所有的用户 |
| | | public List searchCS_All() ; |
| | | @Select("select distinct(tb_user_inf.uid),uSnId,uName,uShenFenId,uEmployeeId,uTelephone,uMobilephone,uEmail,uAddr,uBirthday,uAccessionDay,uSex,uDepartment,uProTitle,uAuthority,uJobGroup,uDuties,uTasks,uBaojiusr,uNote "+ |
| | | " from db_user.tb_user_inf " + |
| | | " order by uid ") |
| | | public List<User_inf> searchCS_All() ; |
| | | |
| | | @Select("select count(*) from db_user.tb_user_inf ") |
| | | int getLimtitNumber(); |
| | | |
| | | /*public static void main(String[] args) { |
| | | User_infImpl ui= new User_infImpl(); |