UserInfoController.java 15.8 KB
Newer Older
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
1
/*
M
MaxKey 已提交
2
 * Copyright [2022] [MaxKey of copyright http://www.maxkey.top]
3
 * 
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
4 5 6
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
7
 * 
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
8
 *     http://www.apache.org/licenses/LICENSE-2.0
9
 * 
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
10 11 12 13 14 15
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
16
 
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
17

MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
18 19 20
package org.maxkey.web.contorller;

import java.beans.PropertyEditorSupport;
M
MaxKey 已提交
21
import java.io.IOException;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
22
import java.text.SimpleDateFormat;
M
MaxKey 已提交
23 24
import java.util.ArrayList;
import java.util.Comparator;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
25 26
import java.util.Date;
import java.util.HashMap;
M
MaxKey 已提交
27
import java.util.List;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
28
import java.util.Map;
M
MaxKey 已提交
29 30
import java.util.TreeSet;
import java.util.stream.Collectors;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
31 32

import org.apache.mybatis.jpa.persistence.JpaPageResults;
M
MaxKey 已提交
33 34 35
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
M
change  
MaxKey 已提交
36
import org.maxkey.authn.annotation.CurrentUser;
M
MaxKey 已提交
37 38 39
import org.maxkey.constants.ConstsEntryType;
import org.maxkey.constants.ConstsOperateAction;
import org.maxkey.constants.ConstsOperateResult;
M
v 3.3.0  
MaxKey 已提交
40
import org.maxkey.constants.ConstsPasswordSetType;
M
MaxKey 已提交
41
import org.maxkey.entity.ChangePassword;
M
MaxKey 已提交
42
import org.maxkey.entity.ExcelImport;
M
change  
MaxKey 已提交
43
import org.maxkey.entity.Message;
M
MaxKey 已提交
44
import org.maxkey.entity.UserInfo;
M
MaxKey 已提交
45
import org.maxkey.persistence.service.FileUploadService;
M
MaxKey 已提交
46
import org.maxkey.persistence.service.HistorySystemLogsService;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
47
import org.maxkey.persistence.service.UserInfoService;
M
MaxKey 已提交
48 49
import org.maxkey.util.DateUtils;
import org.maxkey.util.ExcelUtils;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
50 51 52 53 54 55 56
import org.maxkey.util.JsonUtils;
import org.maxkey.util.StringUtils;
import org.maxkey.web.WebContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.propertyeditors.CustomDateEditor;
M
change  
MaxKey 已提交
57 58
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
59
import org.springframework.stereotype.Controller;
M
MaxKey 已提交
60
import org.springframework.util.CollectionUtils;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
61 62 63 64
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PathVariable;
M
change  
MaxKey 已提交
65
import org.springframework.web.bind.annotation.RequestBody;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
66 67 68
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
M
MaxKey 已提交
69
import com.google.common.collect.Lists;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
70 71 72 73 74 75

/**
 * @author Crystal.Sea
 *
 */
@Controller
M
change  
MaxKey 已提交
76
@RequestMapping(value = { "/users" })
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
77 78
public class UserInfoController {
	final static Logger _logger = LoggerFactory.getLogger(UserInfoController.class);
79
	
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
80 81
	@Autowired
	private UserInfoService userInfoService;
M
MaxKey 已提交
82 83 84
	
	@Autowired
	FileUploadService fileUploadService;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
85

M
MaxKey 已提交
86 87
	@Autowired
	HistorySystemLogsService systemLog;
88
	
M
change  
MaxKey 已提交
89
	@RequestMapping(value = { "/fetch" }, produces = {MediaType.APPLICATION_JSON_VALUE})
90
	@ResponseBody
M
change  
MaxKey 已提交
91 92 93 94 95
	public ResponseEntity<?> fetch(@ModelAttribute UserInfo userInfo,@CurrentUser UserInfo currentUser) {
		_logger.debug(""+userInfo);
		userInfo.setInstId(currentUser.getInstId());
		return new Message<JpaPageResults<UserInfo>>(
				userInfoService.queryPageResults(userInfo)).buildResponse();
96
	}
M
change  
MaxKey 已提交
97 98 99 100 101 102 103 104 105

	@ResponseBody
	@RequestMapping(value={"/query"}, produces = {MediaType.APPLICATION_JSON_VALUE})
	public ResponseEntity<?> query(@ModelAttribute UserInfo userInfo,@CurrentUser UserInfo currentUser) {
		_logger.debug("-query  :" + userInfo);
		if (userInfoService.load(userInfo)!=null) {
			 return new Message<UserInfo>(Message.SUCCESS).buildResponse();
		} else {
			 return new Message<UserInfo>(Message.SUCCESS).buildResponse();
106 107 108
		}
	}
	
M
change  
MaxKey 已提交
109 110
	@RequestMapping(value = { "/get/{id}" }, produces = {MediaType.APPLICATION_JSON_VALUE})
	public ResponseEntity<?> get(@PathVariable("id") String id) {
111
		UserInfo userInfo=userInfoService.get(id);
M
MaxKey 已提交
112
		userInfo.trans();
M
change  
MaxKey 已提交
113
		return new Message<UserInfo>(userInfo).buildResponse();
114
	}
M
change  
MaxKey 已提交
115
	
M
MaxKey 已提交
116 117 118 119 120 121 122
	@RequestMapping(value = { "/getByUsername/{username}" }, produces = {MediaType.APPLICATION_JSON_VALUE})
	public ResponseEntity<?> getByUsername(@PathVariable("username") String username) {
		UserInfo userInfo=userInfoService.findByUsername(username);
		userInfo.trans();
		return new Message<UserInfo>(userInfo).buildResponse();
	}
	
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
123
	@ResponseBody
M
change  
MaxKey 已提交
124 125 126 127 128
	@RequestMapping(value={"/add"}, produces = {MediaType.APPLICATION_JSON_VALUE})
	public ResponseEntity<?> insert(@RequestBody UserInfo userInfo,@CurrentUser UserInfo currentUser) {
		_logger.debug("-Add  :" + userInfo);
		userInfo.setId(WebContext.genId());
		userInfo.setInstId(currentUser.getInstId());
M
MaxKey 已提交
129 130 131 132
		if(StringUtils.isNotBlank(userInfo.getPictureId())) {
			userInfo.setPicture(fileUploadService.get(userInfo.getPictureId()).getUploaded());
			fileUploadService.remove(userInfo.getPictureId());
		}
M
change  
MaxKey 已提交
133
		if (userInfoService.insert(userInfo)) {
M
MaxKey 已提交
134 135 136 137 138 139
			systemLog.insert(
					ConstsEntryType.USERINFO, 
					userInfo, 
					ConstsOperateAction.CREATE, 
					ConstsOperateResult.SUCCESS, 
					currentUser);
M
change  
MaxKey 已提交
140 141 142
			return new Message<UserInfo>(Message.SUCCESS).buildResponse();
		} else {
			return new Message<UserInfo>(Message.FAIL).buildResponse();
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
143 144
		}
	}
145
	
M
change  
MaxKey 已提交
146 147 148 149
	@ResponseBody
	@RequestMapping(value={"/update"}, produces = {MediaType.APPLICATION_JSON_VALUE})
	public ResponseEntity<?> update(@RequestBody  UserInfo userInfo,@CurrentUser UserInfo currentUser) {
		_logger.debug("-update  :" + userInfo);
150 151 152 153 154 155
		_logger.info(userInfo.getExtraAttributeName());
		_logger.info(userInfo.getExtraAttributeValue());
		//userInfo.setNameZHShortSpell(StringUtils.hanYu2Pinyin(userInfo.getDisplayName(), true));
		//userInfo.setNameZHSpell(StringUtils.hanYu2Pinyin(userInfo.getDisplayName(), false));
		convertExtraAttribute(userInfo) ;
		_logger.info(userInfo.getExtraAttribute());
M
change  
MaxKey 已提交
156
		userInfo.setInstId(currentUser.getInstId());
M
MaxKey 已提交
157 158 159 160
		if(StringUtils.isNotBlank(userInfo.getPictureId())) {
			userInfo.setPicture(fileUploadService.get(userInfo.getPictureId()).getUploaded());
			fileUploadService.remove(userInfo.getPictureId());
		}
M
change  
MaxKey 已提交
161
		if (userInfoService.update(userInfo)) {
M
MaxKey 已提交
162 163 164 165 166 167
			systemLog.insert(
					ConstsEntryType.USERINFO, 
					userInfo, 
					ConstsOperateAction.UPDATE, 
					ConstsOperateResult.SUCCESS, 
					currentUser);
M
change  
MaxKey 已提交
168
		    return new Message<UserInfo>(Message.SUCCESS).buildResponse();
169
		} else {
M
change  
MaxKey 已提交
170
			return new Message<UserInfo>(Message.FAIL).buildResponse();
171 172 173 174
		}
	}
	
	@ResponseBody
M
change  
MaxKey 已提交
175 176 177
	@RequestMapping(value={"/delete"}, produces = {MediaType.APPLICATION_JSON_VALUE})
	public ResponseEntity<?> delete(@RequestParam("ids") String ids,@CurrentUser UserInfo currentUser) {
		_logger.debug("-delete  ids : {} " , ids);
M
MaxKey 已提交
178
		
M
change  
MaxKey 已提交
179
		if (userInfoService.deleteBatch(ids)) {
M
MaxKey 已提交
180 181 182 183 184 185
			systemLog.insert(
					ConstsEntryType.USERINFO, 
					ids, 
					ConstsOperateAction.DELETE, 
					ConstsOperateResult.SUCCESS, 
					currentUser);
M
change  
MaxKey 已提交
186
			 return new Message<UserInfo>(Message.SUCCESS).buildResponse();
187
		} else {
M
change  
MaxKey 已提交
188
			return new Message<UserInfo>(Message.FAIL).buildResponse();
189 190
		}
	}
M
change  
MaxKey 已提交
191 192 193

	
    @ResponseBody
M
MaxKey 已提交
194 195 196 197 198 199
    @RequestMapping(value = "/randomPassword", produces = {MediaType.APPLICATION_JSON_VALUE})
    public ResponseEntity<?> randomPassword() {
        return new Message<Object>(
        		Message.SUCCESS,
        		(Object)userInfoService.randomPassword()
        	).buildResponse();
M
change  
MaxKey 已提交
200 201
    }
	   
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217
	
	protected void convertExtraAttribute(UserInfo userInfo) {
		if(userInfo.getExtraAttributeValue()!=null){
			String []extraAttributeLabel=userInfo.getExtraAttributeName().split(",");
			String []extraAttributeValue=userInfo.getExtraAttributeValue().split(",");
			Map<String,String> extraAttributeMap=new HashMap<String,String> ();
			for(int i=0;i<extraAttributeLabel.length;i++){
				extraAttributeMap.put(extraAttributeLabel[i], extraAttributeValue[i]);
			}
			String extraAttribute=JsonUtils.object2Json(extraAttributeMap);
			userInfo.setExtraAttribute(extraAttribute);
		}
	}
	
	
	@ResponseBody
M
MaxKey 已提交
218
	@RequestMapping(value="/changePassword", produces = {MediaType.APPLICATION_JSON_VALUE})
M
MaxKey 已提交
219
	public ResponseEntity<?> changePassword(
M
MaxKey 已提交
220
			@RequestBody ChangePassword changePassword,
M
MaxKey 已提交
221 222 223 224
			@CurrentUser UserInfo currentUser) {
		_logger.debug("UserId {}",changePassword.getUserId());
		changePassword.setPasswordSetType(ConstsPasswordSetType.PASSWORD_NORMAL);
		if(userInfoService.changePassword(changePassword,true)) {
M
MaxKey 已提交
225 226 227 228 229 230
			systemLog.insert(
					ConstsEntryType.USERINFO, 
					changePassword, 
					ConstsOperateAction.CHANGE_PASSWORD, 
					ConstsOperateResult.SUCCESS, 
					currentUser);
M
change  
MaxKey 已提交
231
			return new Message<UserInfo>(Message.SUCCESS).buildResponse();
232
		} else {
M
change  
MaxKey 已提交
233
			return new Message<UserInfo>(Message.FAIL).buildResponse();
234 235 236
		}
	}
	
M
MaxKey 已提交
237 238 239 240 241 242
	@RequestMapping(value = { "/updateStatus" }, produces = {MediaType.APPLICATION_JSON_VALUE})
	@ResponseBody
	public ResponseEntity<?> updateStatus(@ModelAttribute UserInfo userInfo,@CurrentUser UserInfo currentUser) {
		_logger.debug(""+userInfo);
		userInfo.setInstId(currentUser.getInstId());
		if(userInfoService.updateStatus(userInfo)) {
M
MaxKey 已提交
243 244 245 246 247 248
			systemLog.insert(
					ConstsEntryType.USERINFO, 
					userInfo, 
					ConstsOperateAction.statusActon.get(userInfo.getStatus()), 
					ConstsOperateResult.SUCCESS, 
					currentUser);
M
MaxKey 已提交
249 250 251 252 253 254
			return new Message<UserInfo>(Message.SUCCESS).buildResponse();
		} else {
			return new Message<UserInfo>(Message.FAIL).buildResponse();
		}
	}
	
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
255
    @RequestMapping(value = "/import")
M
MaxKey 已提交
256 257 258
    public ResponseEntity<?> importingUsers(
    		@ModelAttribute("excelImportFile")ExcelImport excelImportFile,
    		@CurrentUser UserInfo currentUser)  {
M
MaxKey 已提交
259 260 261 262 263 264
        if (excelImportFile.isExcelNotEmpty() ) {
            try {
                List<UserInfo> userInfoList = Lists.newArrayList();
                Workbook workbook = excelImportFile.biuldWorkbook();
                int recordCount = 0;
                int sheetSize = workbook.getNumberOfSheets();
M
MaxKey 已提交
265
                for (int i = 0; i < sheetSize; i++) {//遍历sheet页
M
MaxKey 已提交
266 267 268 269 270 271 272
                    Sheet sheet = workbook.getSheetAt(i);
                    int rowSize = sheet.getLastRowNum() + 1;
                    for (int j = 1; j < rowSize; j++) {//遍历行
                        Row row = sheet.getRow(j);
                        if (row == null || j <3 ) {//略过空行和前3行
                            continue;
                        } else {//其他行是数据行
M
MaxKey 已提交
273
                        	UserInfo userInfo = buildUserFromSheetRow(row,currentUser);
M
MaxKey 已提交
274
                            userInfoList.add(userInfo);
M
MaxKey 已提交
275 276 277 278 279 280 281 282
                            recordCount ++;
                            _logger.debug("record {} user {} account {}",recordCount,userInfo.getDisplayName(),userInfo.getUsername());
                        }
                    }
                }
                // 数据去重
                if(!CollectionUtils.isEmpty(userInfoList)){
                    userInfoList = userInfoList.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(o -> o.getUsername()))), ArrayList::new));
M
MaxKey 已提交
283
                    if( userInfoService.insertBatch(userInfoList)) {
M
change  
MaxKey 已提交
284
                    	return new Message<UserInfo>(Message.SUCCESS).buildResponse();
M
MaxKey 已提交
285 286 287 288 289 290 291
                    }
                }
            } catch (IOException e) {
                e.printStackTrace();
            }finally {
            	excelImportFile.closeWorkbook();
            }
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
292
        }
M
change  
MaxKey 已提交
293
        return new Message<UserInfo>(Message.FAIL).buildResponse();
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
294 295 296
        
    }
    
297 298 299 300 301
	@InitBinder
	public void binder(WebDataBinder binder) {
		binder.registerCustomEditor(String.class, new PropertyEditorSupport() {
		    @Override
			public void setAsText(String value) {
302
		        	if(StringUtils.isEmpty(value)){
303 304 305 306 307
		        		setValue(null);
		        	}else{
		        		setValue(value);
		        	}
		    }
Y
yapeng.li 已提交
308

309 310 311 312 313 314
		    
		});
		 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
	        dateFormat.setLenient(false);  
	        binder.registerCustomEditor(Date.class, new CustomDateEditor(dateFormat, true));
	}
M
MaxKey 已提交
315
	
M
MaxKey 已提交
316
	
M
MaxKey 已提交
317
	public UserInfo buildUserFromSheetRow(Row row,UserInfo currentUser) {
M
MaxKey 已提交
318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416
		UserInfo userInfo = new UserInfo();
        userInfo.setCreatedDate(DateUtils.formatDateTime(new Date()));
		// 登录账号
		userInfo.setUsername(ExcelUtils.getValue(row, 0));
		// 密码
		userInfo.setPassword(ExcelUtils.getValue(row, 1));
		// 用户显示
		userInfo.setDisplayName(ExcelUtils.getValue(row, 2));
		// 姓
		userInfo.setFamilyName(ExcelUtils.getValue(row, 3));
		// 名
		userInfo.setGivenName(ExcelUtils.getValue(row, 4));
		// 中间名
		userInfo.setMiddleName(ExcelUtils.getValue(row, 5));
		// 昵称
		userInfo.setNickName(ExcelUtils.getValue(row, 6));
		// 性别
		String gender = ExcelUtils.getValue(row, 7);
		userInfo.setGender(gender.equals("") ? 1 : Integer.valueOf(gender));
		// 语言偏好
		userInfo.setPreferredLanguage(ExcelUtils.getValue(row, 8));
		// 时区
		userInfo.setTimeZone(ExcelUtils.getValue(row, 9));
		// 用户类型
		userInfo.setUserType(ExcelUtils.getValue(row, 10));
		// 员工编码
		userInfo.setEmployeeNumber(ExcelUtils.getValue(row, 11));
		// AD域账号
		userInfo.setWindowsAccount(ExcelUtils.getValue(row, 12));
		// 所属机构
		userInfo.setOrganization(ExcelUtils.getValue(row, 13));
		// 分支机构
		userInfo.setDivision(ExcelUtils.getValue(row, 14));
		// 部门编号
		userInfo.setDepartmentId(ExcelUtils.getValue(row, 15));
		// 部门名称
		userInfo.setDepartment(ExcelUtils.getValue(row, 16));
		// 成本中心
		userInfo.setCostCenter(ExcelUtils.getValue(row, 17));
		// 职位
		userInfo.setJobTitle(ExcelUtils.getValue(row, 18));
		// 级别
		userInfo.setJobLevel(ExcelUtils.getValue(row, 19));
		// 上级经理
		userInfo.setManager(ExcelUtils.getValue(row, 20));
		// 助理
		userInfo.setAssistant(ExcelUtils.getValue(row, 21));
		// 入职时间
		userInfo.setEntryDate(ExcelUtils.getValue(row, 22));
		// 离职时间
		userInfo.setQuitDate(ExcelUtils.getValue(row, 23));
		// 工作-国家
		userInfo.setWorkCountry(ExcelUtils.getValue(row, 24));
		// 工作-省
		userInfo.setWorkRegion(ExcelUtils.getValue(row, 25));
		// 工作-城市
		userInfo.setTimeZone(ExcelUtils.getValue(row, 26));
		// 工作-地址
		userInfo.setWorkLocality(ExcelUtils.getValue(row, 27));
		// 邮编
		userInfo.setWorkPostalCode(ExcelUtils.getValue(row, 28));
		// 传真
		userInfo.setWorkFax(ExcelUtils.getValue(row, 29));
		// 工作电话
		userInfo.setWorkPhoneNumber(ExcelUtils.getValue(row, 30));
		// 工作邮件
		userInfo.setWorkEmail(ExcelUtils.getValue(row, 31));
		// 证件类型 todo 现在数据库中存储的是tinyint
//      userInfo.setIdType(ExcelUtils.getValue(row, 32));
		// 证件号码
		userInfo.setIdCardNo(ExcelUtils.getValue(row, 33));
		// 出生日期
		userInfo.setBirthDate(ExcelUtils.getValue(row, 34));
		// 婚姻状态 todo 现在数据字段类型是 tinyint
//      userInfo.setMarried(ExcelUtils.getValue(row, 35));
		// 开始工作时间
		userInfo.setStartWorkDate(ExcelUtils.getValue(row, 36));
		// 个人主页
		userInfo.setWebSite(ExcelUtils.getValue(row, 37));
		// 即时通讯
		userInfo.setDefineIm(ExcelUtils.getValue(row, 38));
		// 国家
		userInfo.setHomeCountry(ExcelUtils.getValue(row, 39));
		// 省
		userInfo.setHomeRegion(ExcelUtils.getValue(row, 40));
		// 城市
		userInfo.setHomeLocality(ExcelUtils.getValue(row, 41));
		// 家庭地址
		userInfo.setHomeStreetAddress(ExcelUtils.getValue(row, 42));
		// 家庭邮编
		userInfo.setHomePostalCode(ExcelUtils.getValue(row, 43));
		// 家庭传真
		userInfo.setHomeFax(ExcelUtils.getValue(row, 44));
		// 家庭电话
		userInfo.setHomePhoneNumber(ExcelUtils.getValue(row, 45));
		// 家庭邮箱
		userInfo.setHomeEmail(ExcelUtils.getValue(row, 46));
		userInfoService.passwordEncoder(userInfo);
        userInfo.setStatus(1);
M
MaxKey 已提交
417
        userInfo.setInstId(currentUser.getInstId());
M
MaxKey 已提交
418 419
        return userInfo;
	}
M
MaxKey 已提交
420

MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
421
}