| | |
| | | user.setAccount(person.getEmployeeID()); |
| | | user.setPhone(person.getPhoneNumber()); |
| | | user.setEmail(person.getCompanyEmail()); |
| | | user.setIsCustom(person.getCompanyId().equals("SC2463") ? 0 : 1); |
| | | //todo 根据客户公司的编号而改变 |
| | | user.setIsCustom(person.getCompanyId().equals("SC2301") ? 0 : 1); |
| | | user.setPassword(DigestUtils.md5DigestAsHex("zttZTT123!".getBytes())); |
| | | user.setCompany(BeanUtil.isNotEmpty(custom) ? (custom.getId() + "") : companyName); |
| | | user.setAddress("未填写"); |
| | |
| | | public List<User> getUser() { |
| | | return userMapper.getUser(); |
| | | } |
| | | |
| | | /** |
| | | * 获取当前登录用户部门 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public String selectUserDepartmentLimsName() { |
| | | return userMapper.selectUserDepartmentLimsName(getLook.selectPowerByMethodAndUserId(null).get("userId")); |
| | | } |
| | | |
| | | /** |
| | | * 获取当前登录用户部门下的所有用户 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<User> selectDepartmentLimsUserList() { |
| | | return userMapper.selectDepartmentLimsUserList(getLook.selectPowerByMethodAndUserId(null).get("userId")); |
| | | } |
| | | } |