generated from dxfeng/secondev-chapanda-feishu
refactor(organization): 重构员工状态映射逻辑
- 修改 getPersonnel_status 方法,实现员工状态与北森系统的映射 - 增加 switch 语句处理不同员工状态的转换 - 返回对应的北森系统状态码
This commit is contained in:
parent
15d33efb51
commit
87870622af
|
|
@ -147,7 +147,20 @@ public class EmployeeData {
|
|||
return StringUtils.isBlank(jjrname) ? "" : jjrname;
|
||||
}
|
||||
public String getPersonnel_status() {
|
||||
return StringUtils.isBlank(personnel_status) ? "" : personnel_status;
|
||||
switch (personnel_status){
|
||||
case "1":
|
||||
// 试用
|
||||
return "2";
|
||||
case "3":
|
||||
// 正式
|
||||
return "3";
|
||||
case "6":
|
||||
// 离职
|
||||
return "8";
|
||||
default:
|
||||
// 临时 对应北森:非正式
|
||||
return "12";
|
||||
}
|
||||
}
|
||||
public String getSfqdjyxy() {
|
||||
return StringUtils.isBlank(sfqdjyxy) ? "" : sfqdjyxy;
|
||||
|
|
|
|||
Loading…
Reference in New Issue