pc端jobTitles 返回期望岗位
This commit is contained in:
@@ -175,6 +175,7 @@ public class SysLoginController
|
|||||||
if (user != null && user.getAppUserId() != null) {
|
if (user != null && user.getAppUserId() != null) {
|
||||||
AppUser appUser = appUserService.selectAppUserByUserId(user.getAppUserId());
|
AppUser appUser = appUserService.selectAppUserByUserId(user.getAppUserId());
|
||||||
if (appUser != null) {
|
if (appUser != null) {
|
||||||
|
user.setJobTitles(appUser.getJobTitle());
|
||||||
userType = appUser.getUserType();
|
userType = appUser.getUserType();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,6 +76,8 @@ public class SysUser extends BaseEntity
|
|||||||
//appUserId
|
//appUserId
|
||||||
private Long appUserId;
|
private Long appUserId;
|
||||||
|
|
||||||
|
private List<String> jobTitles;
|
||||||
|
|
||||||
/** 部门对象 */
|
/** 部门对象 */
|
||||||
@Excels({
|
@Excels({
|
||||||
@Excel(name = "部门名称", targetAttr = "deptName", type = Type.EXPORT),
|
@Excel(name = "部门名称", targetAttr = "deptName", type = Type.EXPORT),
|
||||||
@@ -319,6 +321,14 @@ public class SysUser extends BaseEntity
|
|||||||
this.appUserId = appUserId;
|
this.appUserId = appUserId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<String> getJobTitles() {
|
||||||
|
return jobTitles;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJobTitles(List<String> jobTitles) {
|
||||||
|
this.jobTitles = jobTitles;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
@@ -343,6 +353,7 @@ public class SysUser extends BaseEntity
|
|||||||
.append("dept", getDept())
|
.append("dept", getDept())
|
||||||
.append("idCard", getIdCard())
|
.append("idCard", getIdCard())
|
||||||
.append("appUserId", getAppUserId())
|
.append("appUserId", getAppUserId())
|
||||||
|
.append("jobTitles", getJobTitles())
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user