东方骏驰花名册快照定时任务
parent
db81a00b41
commit
c3cb0dceec
@ -0,0 +1,14 @@
|
||||
|
||||
#\u4E1C\u65B9\u9A8F\u9A70\u82B1\u540D\u518C\u5FEB\u7167\u81EA\u5B9A\u4E49\u5B57\u6BB5
|
||||
|
||||
#\u94F6\u884C\u5361\u53F7
|
||||
account=field3
|
||||
#\u94F6\u884C\u540D\u79F0
|
||||
bankField=field26
|
||||
#\u6237\u7C4D\u5730\u5740
|
||||
regresidentplace=field6
|
||||
#\u9996\u6B21\u53C2\u4FDD\u65E5\u671F
|
||||
femdate=field27
|
||||
|
||||
#\u5EFA\u6A21\u5FEB\u7167\u6570\u636E\u6A21\u5757id
|
||||
modeId=77
|
@ -0,0 +1,68 @@
|
||||
package com.engine.kqsolution.entity;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @Author liang.cheng
|
||||
* @Date 2024/8/28 10:05 AM
|
||||
* @Description: 花名册快照
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class HistoryResourcePO {
|
||||
|
||||
private Integer resourceId;
|
||||
|
||||
private String workcode;
|
||||
|
||||
private String lastName;
|
||||
|
||||
private String birthday;
|
||||
|
||||
private String sex;
|
||||
|
||||
private String subCompany;
|
||||
|
||||
private String department;
|
||||
|
||||
private String managerId;
|
||||
|
||||
private String companyStartDate;
|
||||
|
||||
private String createDate;
|
||||
|
||||
private String accumfundAccount;
|
||||
|
||||
private String accountId;
|
||||
|
||||
private String bankName;
|
||||
|
||||
private String firstEnrollmentDate;
|
||||
|
||||
private String startdate;
|
||||
|
||||
private String endDate;
|
||||
|
||||
private String jobTitle;
|
||||
|
||||
private String status;
|
||||
|
||||
private String educationlevel;
|
||||
|
||||
private String mobile;
|
||||
|
||||
private String certificatenum;
|
||||
|
||||
private String nativeplace;
|
||||
|
||||
private String regresidentplace;
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,122 @@
|
||||
package com.engine.kqsolution.util;
|
||||
|
||||
import weaver.conn.RecordSet;
|
||||
import weaver.general.Util;
|
||||
import weaver.hrm.company.DepartmentComInfo;
|
||||
import weaver.hrm.company.SubCompanyComInfo;
|
||||
import weaver.hrm.job.EducationLevelComInfo;
|
||||
import weaver.hrm.job.JobTitlesComInfo;
|
||||
import weaver.hrm.resource.ResourceComInfo;
|
||||
|
||||
/**
|
||||
* @Author liang.cheng
|
||||
* @Date 2024/8/28 2:35 PM
|
||||
* @Description: 人员数据类型转换工具
|
||||
* @Version 1.0
|
||||
*/
|
||||
public class ResourceSnipUtils {
|
||||
|
||||
|
||||
/**
|
||||
* 分部
|
||||
* @param subcompanyid
|
||||
* @return
|
||||
*/
|
||||
public static String selectSubCompanyName(String subcompanyid) {
|
||||
SubCompanyComInfo sub = new SubCompanyComInfo();
|
||||
return sub.getSubCompanyname(subcompanyid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 部门
|
||||
* @param departmentId
|
||||
* @return
|
||||
*/
|
||||
public static String selectDeptName(String departmentId) {
|
||||
DepartmentComInfo dept = new DepartmentComInfo();
|
||||
try {
|
||||
return dept.getDepartmentName(departmentId);
|
||||
} catch (Exception e) {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 岗位
|
||||
* @param jobId
|
||||
* @return
|
||||
*/
|
||||
public static String selectJobName(String jobId) {
|
||||
JobTitlesComInfo jc = new JobTitlesComInfo();
|
||||
return jc.getJobTitlesname(jobId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 人员
|
||||
* @param resourceId
|
||||
* @return
|
||||
*/
|
||||
public static String selectResourceName(String resourceId) {
|
||||
try {
|
||||
ResourceComInfo rc = new ResourceComInfo();
|
||||
return rc.getLastname(resourceId);
|
||||
} catch (Exception e) {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 工资银行
|
||||
* @param fieldId
|
||||
* @param value
|
||||
* @return
|
||||
*/
|
||||
public static String selectBankName(String fieldId,Integer value){
|
||||
RecordSet rs = new RecordSet();
|
||||
String id = fieldId.substring(Math.min(5, fieldId.length()));
|
||||
rs.executeQuery("select selectname from cus_selectitem where fieldid = ? and selectvalue = ?",id,value);
|
||||
rs.next();
|
||||
return Util.null2String(rs.getString("selectname"));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 状态
|
||||
* @param status
|
||||
* @return
|
||||
*/
|
||||
public static String selectStatusName(Integer status) {
|
||||
switch (status) {
|
||||
case 0:
|
||||
return "试用";
|
||||
case 1:
|
||||
return "正式";
|
||||
case 2:
|
||||
return "临时";
|
||||
case 3:
|
||||
return "试用延期";
|
||||
case 4:
|
||||
return "解聘";
|
||||
case 5:
|
||||
return "离职";
|
||||
case 6:
|
||||
return "退休";
|
||||
case 7:
|
||||
return "无效";
|
||||
default :
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 学历
|
||||
* @param educLevel
|
||||
* @return
|
||||
*/
|
||||
public static String selectEducName(String educLevel){
|
||||
EducationLevelComInfo educ = new EducationLevelComInfo();
|
||||
return educ.getEducationLevelname(educLevel);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue