|
|
|
@ -2,6 +2,7 @@ package com.glxp.api.service.auth;
|
|
|
|
|
|
|
|
|
|
import com.glxp.api.common.enums.ResultEnum;
|
|
|
|
|
import com.glxp.api.entity.auth.AuthAdmin;
|
|
|
|
|
import com.glxp.api.entity.auth.DeptEntity;
|
|
|
|
|
import com.glxp.api.exception.JsonException;
|
|
|
|
|
import com.glxp.api.req.auth.UpdateUserRequset;
|
|
|
|
|
import lombok.val;
|
|
|
|
@ -18,9 +19,17 @@ public class CustomerService {
|
|
|
|
|
@Resource
|
|
|
|
|
private AuthAdminService authAdminService;
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private DeptService deptService;
|
|
|
|
|
|
|
|
|
|
public AuthAdmin getUserBean() {
|
|
|
|
|
Long userId = getUserId();
|
|
|
|
|
AuthAdmin authAdmin = authAdminService.findById(userId.longValue());
|
|
|
|
|
if (authAdmin != null) {
|
|
|
|
|
DeptEntity dept = deptService.selectByCode(authAdmin.getLocDeptCode());
|
|
|
|
|
authAdmin.setDeptName(dept.getName());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return authAdmin;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|