//设置该员工所分配的所有,授权系统 | //设置该员工所分配的所有,授权系统 | ||||
//1、获取openId | //1、获取openId | ||||
AccountInfo accountInfo = accountInfoRepo.findByAccount(staff.getMobile()); | AccountInfo accountInfo = accountInfoRepo.findByAccount(staff.getMobile()); | ||||
staffVo.setIdNum(accountInfo.getIdNum()); | |||||
//2、找到员工所分配的所有系统角色 | //2、找到员工所分配的所有系统角色 | ||||
List<UserRoleVo> userRoleVoList = null; | List<UserRoleVo> userRoleVoList = null; | ||||
if (accountInfo != null && accountInfo.getOpenId() != null && !accountInfo.getOpenId().trim().isEmpty()) { | if (accountInfo != null && accountInfo.getOpenId() != null && !accountInfo.getOpenId().trim().isEmpty()) { |
public class StaffVo extends BaseModel { | public class StaffVo extends BaseModel { | ||||
private String id; | private String id; | ||||
private String mobile;// 用户账号(手机号码) | private String mobile;// 用户账号(手机号码) | ||||
private String idNum;//员工证件号 | |||||
private String staffId;// 员工工号 | private String staffId;// 员工工号 | ||||
private String staffName;// 员工姓名 | private String staffName;// 员工姓名 | ||||
private Integer staffType;// 员工类型(默认为1) | private Integer staffType;// 员工类型(默认为1) |