refactor(organization): 重构员工状态映射逻辑

- 修改 getPersonnel_status 方法,实现员工状态与北森系统的映射
- 增加 switch 语句处理不同员工状态的转换
- 返回对应的北森系统状态码
This commit is contained in:
dxfeng 2025-07-23 13:12:28 +08:00
parent 15d33efb51
commit 87870622af
1 changed files with 14 additions and 1 deletions

View File

@ -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;