Explorar el Código

modify:

1. 登录用户信息增加单位领域编码;
tags/24080901
WendyYang hace 4 meses
padre
commit
7bcd6e0a9f
Se han modificado 2 ficheros con 10 adiciones y 0 borrados
  1. +7
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/user/manage/UserInfoManage.java
  2. +3
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/user/model/vo/ResUserDetailVO.java

+ 7
- 0
hz-pm-api/src/main/java/com/hz/pm/api/user/manage/UserInfoManage.java Ver fichero

@@ -14,6 +14,8 @@ import com.hz.pm.api.sys.model.entity.Role;
import com.hz.pm.api.sys.model.entity.UserRole;
import com.hz.pm.api.sys.service.IRoleService;
import com.hz.pm.api.sys.service.IUserRoleService;
import com.hz.pm.api.user.helper.MhUnitCache;
import com.hz.pm.api.user.model.dto.UnitDTO;
import com.hz.pm.api.user.model.entity.UserInfo;
import com.hz.pm.api.user.model.enumeration.UserAvailableEnum;
import com.hz.pm.api.user.model.po.ReqUserDetailEditPO;
@@ -47,6 +49,7 @@ import java.util.stream.Collectors;
@RequiredArgsConstructor
public class UserInfoManage {

private final MhUnitCache mhUnitCache;
private final UserAuthManage userAuthManage;
private final IUserInfoService userInfoService;
private final IRoleService roleService;
@@ -276,6 +279,10 @@ public class UserInfoManage {
resUserDetail.setStatus(userInfo.getAvailable());
resUserDetail.setEmployeeCode(userInfo.getEmployeeCode());
resUserDetail.setMhUnitId(userInfo.getMhUnitId());
UnitDTO unit = mhUnitCache.getById(userInfo.getMhUnitId());
if (unit != null && unit.getType() != null) {
resUserDetail.setUnitStrip(unit.getType().getStrip().getCode());
}
resUserDetail.setMhUnitName(userInfo.getMhUnitName());

// 装配用户角色信息列表


+ 3
- 0
hz-pm-api/src/main/java/com/hz/pm/api/user/model/vo/ResUserDetailVO.java Ver fichero

@@ -36,6 +36,9 @@ public class ResUserDetailVO {
@ApiModelProperty("所在单位code")
private Long mhUnitId;

@ApiModelProperty("领域编码")
private Integer unitStrip;

@ApiModelProperty("用户角色")
private List<UserRoleVO> userRoleList;



Cargando…
Cancelar
Guardar