Commit b398e021 authored by hongguangwu's avatar hongguangwu

MVP1.4-人员列表相关

parent 125f2473
......@@ -1526,14 +1526,13 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
public EmployeeBusinessDetailVo getEmployeeBusinessInfoById(String empId, String settleDomain) {
EmployeeBusinessDetailVo businessDetailVo = new EmployeeBusinessDetailVo();
TEmployeeProject employeeInfo = baseMapper.selectById(empId);
TEmployeeInfo employee = null;
EmployeeBusinessVo businessVo = new EmployeeBusinessVo();
// 有档案数据封装数据 无数据直接返回
if (null == employeeInfo){
return businessDetailVo;
}else {
TBusinessEmployeeExtendInfo tBusinessEmployeeExtendInfo = this.businessEmployeeExtendInfoService.getByEmpIdCard(employeeInfo.getEmpIdcard());
employee = tEmployeeInfoMapper.selectById(employeeInfo.getEmpId());
TEmployeeInfo employee = tEmployeeInfoMapper.selectById(employeeInfo.getEmpId());
initEmpBusinessInfo(employeeInfo, employee, businessVo, tBusinessEmployeeExtendInfo);
}
......@@ -1570,12 +1569,6 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
businessVo.setEducationName(empEducation.getEducationName());
}
}
// 处理人员离职信息 和社保公积金派减信息
if (employee != null) {
businessVo.setLeaveDate(employee.getLeaveTime());
businessVo.setLeaveReason(employee.getLeaveReason());
businessVo.setLeaveRemark(employee.getLeaveRemark());
}
// 获取社保和公积金派减信息
SocialAndFundReduceVo vo = new SocialAndFundReduceVo();
vo.setEmpId(empId);
......
......@@ -892,7 +892,7 @@
if(b.BUSINESS_WORKING_STATUS is not null, b.BUSINESS_WORKING_STATUS, a.PROJECT_STATUS) as BUSINESS_WORKING_STATUS,
a.PROJECT_STATUS WORK_FLAG,
a.STATUS WORKING_STATUS_SUB,
if(b.BUSINESS_LEAVE_DATE is not null, b.BUSINESS_LEAVE_DATE, a.LEAVE_TIME) as BUSINESS_LEAVE_DATE,
b.BUSINESS_LEAVE_DATE,
b.DOCUMENT_TYPE,
c.DEPART_NAME as SETTLE_DOMAIN_NAME
FROM t_employee_project a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment