|
|
|
|
@ -25,6 +25,7 @@ |
|
|
|
|
*/ |
|
|
|
|
package org.springblade.system.wrapper; |
|
|
|
|
|
|
|
|
|
import com.alibaba.cloud.commons.lang.StringUtils; |
|
|
|
|
import org.springblade.core.mp.support.BaseEntityWrapper; |
|
|
|
|
import org.springblade.core.tool.utils.BeanUtil; |
|
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
|
@ -83,6 +84,9 @@ public class UserWrapper extends BaseEntityWrapper<User, UserVO> { |
|
|
|
|
} |
|
|
|
|
userVO.setSexName(DictCache.getValue(DictEnum.SEX, user.getSex())); |
|
|
|
|
userVO.setUserTypeName(DictCache.getValue(DictEnum.USER_TYPE, user.getUserType())); |
|
|
|
|
if(StringUtils.isNotEmpty(user.getCode()) && StringUtils.isNotEmpty(user.getRealName())){ |
|
|
|
|
userVO.setCodeRealName(user.getCode()+"/"+user.getRealName()); |
|
|
|
|
} |
|
|
|
|
return userVO; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|