package com.gk.hotwork.doublePrevention.utils; import com.gk.hotwork.Domain.UserInfo; import com.gk.hotwork.Domain.co.ContextCacheUser; public class CacheUserTransfer { public static ContextCacheUser transfer(UserInfo userInfo) { ContextCacheUser contextCacheUser = new ContextCacheUser(); contextCacheUser.setUid(userInfo.getId()); contextCacheUser.setUsername(userInfo.getUsername()); contextCacheUser.setPhone(userInfo.getUsername()); contextCacheUser.setDepId(userInfo.getDepartment()); contextCacheUser.setDepName(userInfo.getDepartmentname()); contextCacheUser.setRealName(userInfo.getRealname()); return contextCacheUser; } }