郑永安
2023-09-19 69185134fcfaf913ea45f1255677225a2cc311a4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
    }
}