|
|
@ -13,8 +13,7 @@ import com.zdxt.auth.project.system.user.dto.UserSearchDto; |
|
|
import com.zdxt.auth.project.system.user.mapper.UserMapper; |
|
|
import com.zdxt.auth.project.system.user.mapper.UserMapper; |
|
|
import com.zdxt.auth.project.system.user.service.IUserService; |
|
|
import com.zdxt.auth.project.system.user.service.IUserService; |
|
|
import com.zdxt.common.annotation.DataScope; |
|
|
import com.zdxt.common.annotation.DataScope; |
|
|
import com.zdxt.common.util.DateUtils; |
|
|
import com.zdxt.common.util.*; |
|
|
import com.zdxt.common.util.UserConstants; |
|
|
|
|
|
import com.zdxt.domain.auth.Dept; |
|
|
import com.zdxt.domain.auth.Dept; |
|
|
import com.zdxt.domain.auth.Role; |
|
|
import com.zdxt.domain.auth.Role; |
|
|
import com.zdxt.domain.auth.User; |
|
|
import com.zdxt.domain.auth.User; |
|
|
@ -45,6 +44,8 @@ public class UserApiImpl implements UserApi { |
|
|
@Autowired |
|
|
@Autowired |
|
|
private DictDataMapper dictDataMapper; |
|
|
private DictDataMapper dictDataMapper; |
|
|
|
|
|
|
|
|
|
|
|
private static String KEY="VRJHzFqJpsSZhwnsKTWNspv_GZMxTWl-bgH6DyE9Ty0"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// private final String dictType = "sys_dept_type";
|
|
|
// private final String dictType = "sys_dept_type";
|
|
|
|
|
|
|
|
|
@ -123,6 +124,11 @@ public class UserApiImpl implements UserApi { |
|
|
@Override |
|
|
@Override |
|
|
public UserBean getUserByUserId(Long userId) { |
|
|
public UserBean getUserByUserId(Long userId) { |
|
|
User user = userMapper.selectUserById(userId); |
|
|
User user = userMapper.selectUserById(userId); |
|
|
|
|
|
try{ |
|
|
|
|
|
if(StringUtils.isNotEmpty(user.getPhonenumber())){ |
|
|
|
|
|
user.setDecryptPhoneNum(CommonUtil.encryptPhone(user.getPhonenumber())); |
|
|
|
|
|
} |
|
|
|
|
|
}catch (Exception e){} |
|
|
UserBean userBean = new UserBean(); |
|
|
UserBean userBean = new UserBean(); |
|
|
BeanUtil.copyProperties(user, userBean); |
|
|
BeanUtil.copyProperties(user, userBean); |
|
|
return userBean; |
|
|
return userBean; |
|
|
|