瀏覽代碼

员工管理调整

master
huminghao 3 週之前
父節點
當前提交
813924edac

+ 1
- 0
zhywpt-app-userw/src/main/java/cn/com/taiji/userw/manager/system/StaffManagerImpl.java 查看文件

//设置该员工所分配的所有,授权系统 //设置该员工所分配的所有,授权系统
//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()) {

+ 1
- 0
zhywpt-app-userw/src/main/java/cn/com/taiji/userw/model/system/StaffVo.java 查看文件

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)

Loading…
取消
儲存