Commit 6c406d6c authored by wangzb's avatar wangzb

feature-wzb :档案和社保处Bug修复

parent 95e01019
...@@ -198,4 +198,9 @@ public class DispatchEmpVo implements Serializable { ...@@ -198,4 +198,9 @@ public class DispatchEmpVo implements Serializable {
@Schema(description ="项目状态(0正常;1已减项)") @Schema(description ="项目状态(0正常;1已减项)")
private Integer projectStatus; private Integer projectStatus;
/**
* 通信地址
*/
private String contactAddress;
} }
...@@ -51,4 +51,6 @@ public class UpProjectSocialFundVo implements Serializable { ...@@ -51,4 +51,6 @@ public class UpProjectSocialFundVo implements Serializable {
String empName; String empName;
String deptName; String deptName;
String detailId; String detailId;
String contactAddress;
String highEducation;
} }
...@@ -25,6 +25,8 @@ public class UpdateEmpVo implements Serializable { ...@@ -25,6 +25,8 @@ public class UpdateEmpVo implements Serializable {
// 备注 // 备注
String remarkTemp; String remarkTemp;
// 通信地址
String contactAddress;
// type 0 审核通过 2.审核不通过 // type 0 审核通过 2.审核不通过
String type; String type;
......
...@@ -2211,9 +2211,11 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T ...@@ -2211,9 +2211,11 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
employeeInfo = baseMapper.selectOne(Wrappers.<TEmployeeInfo>query().lambda() employeeInfo = baseMapper.selectOne(Wrappers.<TEmployeeInfo>query().lambda()
.eq(TEmployeeInfo::getDeleteFlag,CommonConstants.ZERO_STRING) .eq(TEmployeeInfo::getDeleteFlag,CommonConstants.ZERO_STRING)
.eq(TEmployeeInfo::getEmpIdcard,vo.getEmpIdCard()) .eq(TEmployeeInfo::getEmpIdcard,vo.getEmpIdCard())
.eq(TEmployeeInfo::getStatus,CommonConstants.ZERO_INT)
.last(CommonConstants.LAST_ONE_SQL)); .last(CommonConstants.LAST_ONE_SQL));
if (Common.isNotNull(employeeInfo)){ if (Common.isNotNull(employeeInfo)){
if(Common.isNotNull(vo.getContactAddress())) {
employeeInfo.setContactAddress(vo.getContactAddress());
}
employeeInfo.setStatus(CommonConstants.ONE_INT); employeeInfo.setStatus(CommonConstants.ONE_INT);
baseMapper.updateById(employeeInfo); baseMapper.updateById(employeeInfo);
} }
...@@ -2368,9 +2370,38 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T ...@@ -2368,9 +2370,38 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
employeeInfo = new TEmployeeInfo(); employeeInfo = new TEmployeeInfo();
BeanUtil.copyProperties(empAdd, employeeInfo); BeanUtil.copyProperties(empAdd, employeeInfo);
employeeInfo.setEmpCode(getCode()); employeeInfo.setEmpCode(getCode());
employeeInfo.setContactAddress(employeeInfo.getContactAddress()); employeeInfo.setContactAddress(empAdd.getContactAddress());
if(empAdd.getHignEducation().equals("文盲")) {
employeeInfo.setHignEducation("1");
}
if(empAdd.getHignEducation().equals("小学")) {
employeeInfo.setHignEducation("2");
}
if(empAdd.getHignEducation().equals("初中")) {
employeeInfo.setHignEducation("3");
}
if(empAdd.getHignEducation().equals("高中")) {
employeeInfo.setHignEducation("4");
}
if(empAdd.getHignEducation().equals("大专")) {
employeeInfo.setHignEducation("5");
}
if(empAdd.getHignEducation().equals("本科")) {
employeeInfo.setHignEducation("6");
}
if(empAdd.getHignEducation().equals("硕士")) {
employeeInfo.setHignEducation("7");
}
if(empAdd.getHignEducation().equals("技工")) {
employeeInfo.setHignEducation("9");
}
if(empAdd.getHignEducation().equals("职高")) {
employeeInfo.setHignEducation("10");
}
if(empAdd.getHignEducation().equals("中专")) {
employeeInfo.setHignEducation("11");
}
employeeInfo.setIsCollege(CommonConstants.ONE_INT); employeeInfo.setIsCollege(CommonConstants.ONE_INT);
employeeInfo.setHignEducation(employeeInfo.getHignEducation());
employeeInfo.setStatus(CommonConstants.ZERO_INT); employeeInfo.setStatus(CommonConstants.ZERO_INT);
date = IdCardUtil.getBirthdate(employeeInfo.getEmpIdcard()); date = IdCardUtil.getBirthdate(employeeInfo.getEmpIdcard());
if (Common.isNotNull(date)) { if (Common.isNotNull(date)) {
......
...@@ -1396,6 +1396,9 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap ...@@ -1396,6 +1396,9 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
if (Common.isNotNull(vo.getFundStatus())) { if (Common.isNotNull(vo.getFundStatus())) {
employee.setFundStatus(Integer.parseInt(vo.getFundStatus())); employee.setFundStatus(Integer.parseInt(vo.getFundStatus()));
} }
if (Common.isNotNull(vo.getHighEducation())) {
employee.setHignEducation(vo.getHighEducation());
}
if (Common.isNotNull(vo.getFileProvince())) { if (Common.isNotNull(vo.getFileProvince())) {
employee.setFileProvince(Integer.parseInt(vo.getFileProvince())); employee.setFileProvince(Integer.parseInt(vo.getFileProvince()));
} }
...@@ -1410,6 +1413,7 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap ...@@ -1410,6 +1413,7 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
if (Common.isNotNull(vo.getMobile())) { if (Common.isNotNull(vo.getMobile())) {
employee.setEmpPhone(vo.getMobile()); employee.setEmpPhone(vo.getMobile());
} }
employee.setIsCollege(CommonConstants.ONE_INT);
tEmployeeInfoMapper.updateSocialInfoById(employee); tEmployeeInfoMapper.updateSocialInfoById(employee);
} }
TEmployeeProject project = baseMapper.selectOne(Wrappers.<TEmployeeProject>query().lambda() TEmployeeProject project = baseMapper.selectOne(Wrappers.<TEmployeeProject>query().lambda()
......
...@@ -873,7 +873,7 @@ ...@@ -873,7 +873,7 @@
select select
a.ID,a.EMP_CODE,a.EMP_NAME, a.ID,a.EMP_CODE,a.EMP_NAME,
a.EMP_IDCARD,a.EMP_NATIONAL,a.EMP_PHONE,a.ID_PROVINCE,a.ID_CITY, a.EMP_IDCARD,a.EMP_NATIONAL,a.EMP_PHONE,a.ID_PROVINCE,a.ID_CITY,
a.ID_TOWN,a.EMP_REGIS_TYPE,a.FILE_PROVINCE,a.FILE_CITY,a.FILE_TOWN,a.HIGN_EDUCATION,a.FILE_STATUS, a.ID_TOWN,a.EMP_REGIS_TYPE,a.FILE_PROVINCE,a.FILE_CITY,a.FILE_TOWN,a.HIGN_EDUCATION,a.FILE_STATUS,a.CONTACT_ADDRESS,
b.CONTRACT_NAME,b.CONTRACT_TYPE, b.CONTRACT_NAME,b.CONTRACT_TYPE,
b.CONTRACT_START,b.CONTRACT_END,b.CONTRACT_TERM,b.CONTRACT_SUB_NAME,b.CONTRACT_ID, b.CONTRACT_START,b.CONTRACT_END,b.CONTRACT_TERM,b.CONTRACT_SUB_NAME,b.CONTRACT_ID,
...@@ -882,7 +882,7 @@ ...@@ -882,7 +882,7 @@
c.UNIT_NO,c.DEPT_ID,c.DEPT_NAME,c.DEPT_NO,c.POST,c.EMP_NO,c.PROJECT_STATUS,c.EMP_NATRUE c.UNIT_NO,c.DEPT_ID,c.DEPT_NAME,c.DEPT_NO,c.POST,c.EMP_NO,c.PROJECT_STATUS,c.EMP_NATRUE
from ( from (
select e.ID,e.EMP_CODE,e.EMP_NAME,e.EMP_IDCARD,e.EMP_NATIONAL,e.EMP_PHONE,e.ID_PROVINCE,e.ID_CITY, select e.ID,e.EMP_CODE,e.EMP_NAME,e.EMP_IDCARD,e.EMP_NATIONAL,e.EMP_PHONE,e.ID_PROVINCE,e.ID_CITY,
e.ID_TOWN,e.EMP_REGIS_TYPE,e.FILE_PROVINCE,e.FILE_CITY,e.FILE_TOWN,e.HIGN_EDUCATION,e.FILE_STATUS e.ID_TOWN,e.EMP_REGIS_TYPE,e.FILE_PROVINCE,e.FILE_CITY,e.FILE_TOWN,e.HIGN_EDUCATION,e.FILE_STATUS,e.CONTACT_ADDRESS
from t_employee_info e from t_employee_info e
where 1=1 and e.DELETE_FLAG = '0' where 1=1 and e.DELETE_FLAG = '0'
<if test="checkVo != null"> <if test="checkVo != null">
...@@ -1139,6 +1139,9 @@ ...@@ -1139,6 +1139,9 @@
<if test="tEmployeeInfo.id != null">a.id=a.id,</if> <if test="tEmployeeInfo.id != null">a.id=a.id,</if>
<if test="tEmployeeInfo.socialStatus != null">SOCIAL_STATUS=#{tEmployeeInfo.socialStatus},</if> <if test="tEmployeeInfo.socialStatus != null">SOCIAL_STATUS=#{tEmployeeInfo.socialStatus},</if>
<if test="tEmployeeInfo.fundStatus != null">FUND_STATUS=#{tEmployeeInfo.fundStatus},</if> <if test="tEmployeeInfo.fundStatus != null">FUND_STATUS=#{tEmployeeInfo.fundStatus},</if>
<if test="tEmployeeInfo.hignEducation != null">HIGN_EDUCATION=#{tEmployeeInfo.hignEducation},</if>
<if test="tEmployeeInfo.contactAddress != null">CONTACT_ADDRESS=#{tEmployeeInfo.contactAddress},</if>
<if test="tEmployeeInfo.isCollege != null">IS_COLLEGE='1',</if>
<if test="tEmployeeInfo.fileProvince != null">a.FILE_PROVINCE=#{tEmployeeInfo.fileProvince},</if> <if test="tEmployeeInfo.fileProvince != null">a.FILE_PROVINCE=#{tEmployeeInfo.fileProvince},</if>
<if test="tEmployeeInfo.fileCity != null">a.FILE_CITY=#{tEmployeeInfo.fileCity},</if> <if test="tEmployeeInfo.fileCity != null">a.FILE_CITY=#{tEmployeeInfo.fileCity},</if>
<if test="tEmployeeInfo.fileCity != null"> <if test="tEmployeeInfo.fileCity != null">
......
...@@ -281,7 +281,7 @@ public class ArchivesDaprUtil { ...@@ -281,7 +281,7 @@ public class ArchivesDaprUtil {
* @Param type 0 审核通过 1 审核不通过 * @Param type 0 审核通过 1 审核不通过
* @return * @return
**/ **/
public R<Boolean> updateEmpInfo(String empIdCard, String projectNo, String contractId,String type,String remarkTemp, YifuUser user){ public R<Boolean> updateEmpInfo(String empIdCard,String contactAddress, String projectNo, String contractId,String type,String remarkTemp, YifuUser user){
if (Common.isEmpty(empIdCard) if (Common.isEmpty(empIdCard)
|| Common.isEmpty(projectNo) || Common.isEmpty(projectNo)
|| Common.isEmpty(type)){ || Common.isEmpty(type)){
...@@ -295,6 +295,7 @@ public class ArchivesDaprUtil { ...@@ -295,6 +295,7 @@ public class ArchivesDaprUtil {
vo.setType(type); vo.setType(type);
vo.setCreateBy(user.getId()); vo.setCreateBy(user.getId());
vo.setCreateName(user.getNickname()); vo.setCreateName(user.getNickname());
vo.setContactAddress(contactAddress);
R<Boolean> res = HttpDaprUtil.invokeMethodPost( R<Boolean> res = HttpDaprUtil.invokeMethodPost(
daprArchivesProperties.getAppUrl(),daprArchivesProperties.getAppId() daprArchivesProperties.getAppUrl(),daprArchivesProperties.getAppId()
,"/temployeeinfo/inner/updateEmpInfo" , JSON.toJSONString(vo), Boolean.class, SecurityConstants.FROM_IN); ,"/temployeeinfo/inner/updateEmpInfo" , JSON.toJSONString(vo), Boolean.class, SecurityConstants.FROM_IN);
......
...@@ -769,4 +769,5 @@ public class TDispatchInfo extends BaseEntity { ...@@ -769,4 +769,5 @@ public class TDispatchInfo extends BaseEntity {
@TableField(exist = false) @TableField(exist = false)
private String socialFailureType; private String socialFailureType;
private String contactAddress;
} }
...@@ -92,6 +92,12 @@ public class FundHandleExportVo implements Serializable { ...@@ -92,6 +92,12 @@ public class FundHandleExportVo implements Serializable {
@ExcelProperty("身份证所在地" ) @ExcelProperty("身份证所在地" )
private String idCardAddress; private String idCardAddress;
@ExcelAttribute(name = "通信地址")
@Schema(description = "通信地址" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("通信地址" )
private String contactAddress;
/** /**
* 创建人姓名 * 创建人姓名
*/ */
......
...@@ -160,6 +160,15 @@ public class SocialHandleExportVo implements Serializable { ...@@ -160,6 +160,15 @@ public class SocialHandleExportVo implements Serializable {
@ExcelProperty("身份证所在地" ) @ExcelProperty("身份证所在地" )
private String idCardAddress; private String idCardAddress;
/**
* 通信地址
*/
@ExcelAttribute(name = "通信地址")
@Schema(description = "通信地址" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("通信地址" )
private String contactAddress;
/** /**
* 户口性质 * 户口性质
*/ */
......
...@@ -94,6 +94,12 @@ public class TDispatchAuditExportVo { ...@@ -94,6 +94,12 @@ public class TDispatchAuditExportVo {
@ExcelProperty("身份证所在地" ) @ExcelProperty("身份证所在地" )
private String idCardAddress; private String idCardAddress;
@ExcelAttribute(name = "通信地址")
@Schema(description = "通信地址" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("通信地址" )
private String contactAddress;
@ExcelAttribute(name = "社保户", maxLength = 50) @ExcelAttribute(name = "社保户", maxLength = 50)
@Schema(description = "社保户") @Schema(description = "社保户")
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
......
...@@ -502,7 +502,6 @@ public class TDispatchImportVo extends RowIndex implements Serializable { ...@@ -502,7 +502,6 @@ public class TDispatchImportVo extends RowIndex implements Serializable {
private String dispatchId; private String dispatchId;
/** /**
* 订单ID * 订单ID
*/ */
......
...@@ -445,7 +445,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -445,7 +445,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
Map<String,TDispatchInfo> dispatchMap = new HashMap<>(); Map<String,TDispatchInfo> dispatchMap = new HashMap<>();
// 新增社保公积金查询 // 新增社保公积金查询
Map<String,TSocialFundInfo> socialFundAddMap = new HashMap<>(); Map<String,TSocialFundInfo> socialFundAddMap = new HashMap<>();
DispatchEmpVo empVo; DispatchEmpVo empVo = null;
SysBaseSetInfo socialSet; SysBaseSetInfo socialSet;
SysBaseSetInfo fundSet; SysBaseSetInfo fundSet;
ProjectSetInfoVo setInfoVo = null; ProjectSetInfoVo setInfoVo = null;
...@@ -592,7 +592,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -592,7 +592,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
addVo.setProjectsMap(projectsMap); addVo.setProjectsMap(projectsMap);
R<EmpDispatchAddVo> res = archivesDaprUtil.addDispatchInfo(addVo); R<EmpDispatchAddVo> res = archivesDaprUtil.addDispatchInfo(addVo);
// 开始插入各种数据了 // 开始插入各种数据了
insertAllInfo(excelVOList, errorMessageList, res,socialsMap,fundsMap,socialFundAddMap,dispatchMap,excelVOTemp,dispatchPart,injury); insertAllInfo(excelVOList, errorMessageList, empVo,res,socialsMap,fundsMap,socialFundAddMap,dispatchMap,excelVOTemp,dispatchPart,injury);
// 清理map list 等数据 // 清理map list 等数据
Common.clear(excelVOList); Common.clear(excelVOList);
Common.clear(empAddsMap); Common.clear(empAddsMap);
...@@ -621,6 +621,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -621,6 +621,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
private void insertAllInfo(List<TDispatchImportVo> excelVOList, private void insertAllInfo(List<TDispatchImportVo> excelVOList,
List<ErrorMessage> errorMessageList, List<ErrorMessage> errorMessageList,
DispatchEmpVo empVo,
R<EmpDispatchAddVo> res, R<EmpDispatchAddVo> res,
Map<String, TSocialInfo> socialsMap, Map<String, TSocialInfo> socialsMap,
Map<String, TProvidentFund> fundsMap, Map<String, TProvidentFund> fundsMap,
...@@ -693,6 +694,13 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -693,6 +694,13 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if (Common.isNotNull(dispatchMap)){ if (Common.isNotNull(dispatchMap)){
dispatch = dispatchMap.get(excel.getEmpIdcard()); dispatch = dispatchMap.get(excel.getEmpIdcard());
if (Common.isNotNull(dispatch)){ if (Common.isNotNull(dispatch)){
if(Common.isNotNull(empVo)) {
if (Common.isNotNull(empVo.getContactAddress()) && !excel.getContactAddress().equals(empVo.getContactAddress())) {
dispatch.setContactAddress(empVo.getContactAddress());
}
}else {
dispatch.setContactAddress(excel.getContactAddress());
}
if (Common.isNotNull(social)){ if (Common.isNotNull(social)){
dispatch.setSocialId(social.getId()); dispatch.setSocialId(social.getId());
dispatch.setSocialHouseholdName(social.getSocialHouseholdName()); dispatch.setSocialHouseholdName(social.getSocialHouseholdName());
...@@ -708,6 +716,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -708,6 +716,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if (Common.isNotNull(project)){ if (Common.isNotNull(project)){
dispatch.setEmpNo(project.getEmpNo()); dispatch.setEmpNo(project.getEmpNo());
} }
insertDispatch(emp, dispatch); insertDispatch(emp, dispatch);
// 新增派单申请提交记录 // 新增派单申请提交记录
auditInfo = new TAuditInfo(); auditInfo = new TAuditInfo();
...@@ -727,7 +736,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -727,7 +736,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
forecastLibraryService.updateForecastLibaryByDispatch(null,null,socialFund); forecastLibraryService.updateForecastLibaryByDispatch(null,null,socialFund);
} }
// 同步更新人员档案和项目档案的社保公积金状态 // 同步更新人员档案和项目档案的社保公积金状态
updateDocSocialFund(social, fund, socialFund,excel);
updateDocSocialFund(social, fund, socialFund,empVo,excel);
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), CommonConstants.SAVE_SUCCESS, CommonConstants.GREEN)); errorMessageList.add(new ErrorMessage(excel.getRowIndex(), CommonConstants.SAVE_SUCCESS, CommonConstants.GREEN));
}catch (Exception e){ }catch (Exception e){
log.error("派单新增异常:", e); log.error("派单新增异常:", e);
...@@ -755,13 +765,13 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -755,13 +765,13 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
auditInfoMapper.insert(auditInfo); auditInfoMapper.insert(auditInfo);
} }
private void updateDocSocialFund(TSocialInfo social, TProvidentFund fund, TSocialFundInfo socialFund, TDispatchImportVo excel) { private void updateDocSocialFund(TSocialInfo social, TProvidentFund fund, TSocialFundInfo socialFund, DispatchEmpVo empVo,TDispatchImportVo excel) {
UpProjectSocialFundVo vo = new UpProjectSocialFundVo(); UpProjectSocialFundVo vo = new UpProjectSocialFundVo();
if (Common.isNotNull(social)){ if (Common.isNotNull(social)) {
vo.setSocialStatus(CommonConstants.ONE_STRING); vo.setSocialStatus(CommonConstants.ONE_STRING);
vo.setDepartNo(socialFund.getSettleDomainCode()); vo.setDepartNo(socialFund.getSettleDomainCode());
} }
if (Common.isNotNull(fund)){ if (Common.isNotNull(fund)) {
vo.setFundStatus(CommonConstants.ONE_STRING); vo.setFundStatus(CommonConstants.ONE_STRING);
vo.setDepartNo(socialFund.getSettleDomainCodeFund()); vo.setDepartNo(socialFund.getSettleDomainCodeFund());
} }
...@@ -782,9 +792,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -782,9 +792,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
&& ( && (
(CommonConstants.ONE_STRING.equals(socialFund.getBigailmentHandle()) (CommonConstants.ONE_STRING.equals(socialFund.getBigailmentHandle())
&& CommonConstants.ZERO_STRING.equals(socialFund.getIsIllness())) && CommonConstants.ZERO_STRING.equals(socialFund.getIsIllness()))
||(CommonConstants.ONE_STRING.equals(socialFund.getIsIllness())) || (CommonConstants.ONE_STRING.equals(socialFund.getIsIllness()))
)); ));
if (Common.isNotNull(socialFund) && flagTemp){ if (Common.isNotNull(socialFund) && flagTemp) {
vo.setSocialStatus(CommonConstants.TWO_STRING); vo.setSocialStatus(CommonConstants.TWO_STRING);
} }
vo.setFileProvince(excel.getFileProvince()); vo.setFileProvince(excel.getFileProvince());
...@@ -792,6 +802,95 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -792,6 +802,95 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
vo.setFileTown(excel.getFileTown()); vo.setFileTown(excel.getFileTown());
vo.setMobile(excel.getEmpMobile()); vo.setMobile(excel.getEmpMobile());
vo.setEmpIdCard(socialFund.getEmpIdcard()); vo.setEmpIdCard(socialFund.getEmpIdcard());
if (Common.isNotNull(excel.getEducationName())) {
if(Common.isNotNull(empVo)) {
if (Common.isEmpty(empVo.getHignEducation())) {
if (excel.getEducationName().equals("文盲")) {
vo.setHighEducation("1");
}
if (excel.getEducationName().equals("小学")) {
vo.setHighEducation("2");
}
if (excel.getEducationName().equals("初中")) {
vo.setHighEducation("3");
}
if (excel.getEducationName().equals("高中")) {
vo.setHighEducation("4");
}
if (excel.getEducationName().equals("大专")) {
vo.setHighEducation("5");
}
if (excel.getEducationName().equals("本科")) {
vo.setHighEducation("6");
}
if (excel.getEducationName().equals("硕士")) {
vo.setHighEducation("7");
}
if (excel.getEducationName().equals("技工")) {
vo.setHighEducation("9");
}
if (excel.getEducationName().equals("职高")) {
vo.setHighEducation("10");
}
if (excel.getEducationName().equals("中专")) {
vo.setHighEducation("11");
}
}
if (Common.isNotNull(empVo.getHignEducation())) {
if (excel.getEducationName().equals("文盲")) {
if (empVo.getHignEducation() == "1") {
vo.setHighEducation("1");
}
}
if (excel.getEducationName().equals("小学")) {
if (empVo.getHignEducation() == "2") {
vo.setHighEducation("2");
}
}
if (excel.getEducationName().equals("初中")) {
if (empVo.getHignEducation() == "3") {
vo.setHighEducation("3");
}
}
if (excel.getEducationName().equals("高中")) {
if (empVo.getHignEducation() == "4") {
vo.setHighEducation("4");
}
}
if (excel.getEducationName().equals("大专")) {
if (empVo.getHignEducation() == "5") {
vo.setHighEducation("5");
}
}
if (excel.getEducationName().equals("本科")) {
if (empVo.getHignEducation() == "6") {
vo.setHighEducation("6");
}
}
if (excel.getEducationName().equals("硕士")) {
if (empVo.getHignEducation() == "7") {
vo.setHighEducation("7");
}
}
if (excel.getEducationName().equals("技工")) {
if (empVo.getHignEducation() == "9") {
vo.setHighEducation("9");
}
}
if (excel.getEducationName().equals("职高")) {
if (empVo.getHignEducation() == "10") {
vo.setHighEducation("10");
}
}
if (excel.getEducationName().equals("中专")) {
if (empVo.getHignEducation() == "11") {
vo.setHighEducation("11");
}
}
}
}
}
R<Boolean> resUp = archivesDaprUtil.updateProjectSocialFund(vo); R<Boolean> resUp = archivesDaprUtil.updateProjectSocialFund(vo);
if (Common.isEmpty(resUp) || !(CommonConstants.SUCCESS.intValue() == resUp.getCode()) || !resUp.getData().booleanValue()){ if (Common.isEmpty(resUp) || !(CommonConstants.SUCCESS.intValue() == resUp.getCode()) || !resUp.getData().booleanValue()){
ServiceUtil.runTimeExceptionDiy(vo.getEmpIdCard()+DispatchConstants.DISPATCH_SYN_DOC_EXE); ServiceUtil.runTimeExceptionDiy(vo.getEmpIdCard()+DispatchConstants.DISPATCH_SYN_DOC_EXE);
...@@ -1211,6 +1310,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -1211,6 +1310,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if (Common.isEmpty(dispatch.getDispatchItem())){ if (Common.isEmpty(dispatch.getDispatchItem())){
return true; return true;
} }
dispatch.setContactAddress(excel.getContactAddress());
dispatch.setOrganName(user.getDeptName()); dispatch.setOrganName(user.getDeptName());
dispatch.setCreateBy(user.getId()); dispatch.setCreateBy(user.getId());
dispatch.setCreateTime(LocalDateTime.now()); dispatch.setCreateTime(LocalDateTime.now());
...@@ -1501,7 +1601,12 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -1501,7 +1601,12 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
} }
// 有档案无项目档案无合同 // 有档案无项目档案无合同
if (Common.isNotNull(empVo) && Common.isEmpty(empVo.getDeptNo())) { if (Common.isNotNull(empVo) && Common.isEmpty(empVo.getDeptNo())) {
// 初始化项目档案 // 初始化项目档案
Map<String,String> map = new HashMap<String,String>();
map.put(empVo.getEmpIdcard(),empVo.getContactAddress());
initProjectInfo(projects, excel, empVo, user, setInfoVo, socialSet); initProjectInfo(projects, excel, empVo, user, setInfoVo, socialSet);
// 初始化合同 // 初始化合同
initContractInfo(contracts, excel, empVo, setInfoVo, user); initContractInfo(contracts, excel, empVo, setInfoVo, user);
...@@ -1510,6 +1615,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -1510,6 +1615,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if (Common.isNotNull(empVo) if (Common.isNotNull(empVo)
&& Common.isNotNull(empVo.getDeptNo()) && Common.isNotNull(empVo.getDeptNo())
&& Common.isEmpty(empVo.getContractType())) { && Common.isEmpty(empVo.getContractType())) {
// 初始化合同 // 初始化合同
initContractInfo(contracts, excel, empVo, setInfoVo, user); initContractInfo(contracts, excel, empVo, setInfoVo, user);
} }
...@@ -2054,6 +2161,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -2054,6 +2161,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
emp.setEmpNatrue(excel.getEmpType()); emp.setEmpNatrue(excel.getEmpType());
emp.setEmpPhone(excel.getEmpMobile()); emp.setEmpPhone(excel.getEmpMobile());
emp.setEmpRegisType(excel.getEmpRegisType()); emp.setEmpRegisType(excel.getEmpRegisType());
emp.setHignEducation(excel.getEducationName());
emp.setContractStatus(CommonConstants.ZERO_INT); emp.setContractStatus(CommonConstants.ZERO_INT);
emp.setDeleteFlag(CommonConstants.ZERO_STRING); emp.setDeleteFlag(CommonConstants.ZERO_STRING);
emp.setFileSource(CommonConstants.ONE_STRING); emp.setFileSource(CommonConstants.ONE_STRING);
...@@ -3378,10 +3486,10 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -3378,10 +3486,10 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if (CommonConstants.dingleDigitStrArray[0].equals(dis.getType())){ if (CommonConstants.dingleDigitStrArray[0].equals(dis.getType())){
R<Boolean> res = null; R<Boolean> res = null;
if (CommonConstants.ZERO_INT == flag && !isSSC){ if (CommonConstants.ZERO_INT == flag && !isSSC){
res = archivesDaprUtil.updateEmpInfo(dis.getEmpIdcard(),dis.getSettleDomainCode(),dis.getContractId(),CommonConstants.ZERO_STRING,remarkTemp, user); res = archivesDaprUtil.updateEmpInfo(dis.getEmpIdcard(),dis.getContactAddress(),dis.getSettleDomainCode(),dis.getContractId(),CommonConstants.ZERO_STRING,remarkTemp, user);
} }
if (CommonConstants.ONE_INT == flag){ if (CommonConstants.ONE_INT == flag){
res = archivesDaprUtil.updateEmpInfo(dis.getEmpIdcard(),dis.getSettleDomainCode(),dis.getContractId(),CommonConstants.ONE_STRING,remarkTemp, user); res = archivesDaprUtil.updateEmpInfo(dis.getEmpIdcard(),null,dis.getSettleDomainCode(),dis.getContractId(),CommonConstants.ONE_STRING,remarkTemp, user);
} }
if ((Common.isEmpty(res) || CommonConstants.SUCCESS != res.getCode()) && !isSSC){ if ((Common.isEmpty(res) || CommonConstants.SUCCESS != res.getCode()) && !isSSC){
ServiceUtil.runTimeExceptionDiy("更新人员档案、项目档案、合同状态异常:" + (Common.isNotNull(res)?res.getMsg():CommonConstants.EMPTY_STRING)); ServiceUtil.runTimeExceptionDiy("更新人员档案、项目档案、合同状态异常:" + (Common.isNotNull(res)?res.getMsg():CommonConstants.EMPTY_STRING));
......
...@@ -866,6 +866,7 @@ ...@@ -866,6 +866,7 @@
a.FUND_REDUCE_DATE, a.FUND_REDUCE_DATE,
a.LEAVE_DATE, a.LEAVE_DATE,
a.REDUCE_REASON, a.REDUCE_REASON,
a.CONTACT_ADDRESS,
b.SOCIAL_START_DATE, b.SOCIAL_START_DATE,
b.PAYMENT_TYPE, b.PAYMENT_TYPE,
b.RECORD_BASE, b.RECORD_BASE,
...@@ -1159,6 +1160,7 @@ ...@@ -1159,6 +1160,7 @@
a.ID_CARD_ADDRESS, a.ID_CARD_ADDRESS,
a.CREATE_NAME, a.CREATE_NAME,
a.PROVIDENT_HOUSEHOLD_NAME, a.PROVIDENT_HOUSEHOLD_NAME,
a.CONTACT_ADDRESS,
f.PROVIDENT_START, f.PROVIDENT_START,
f.UNIT_PROVIDENG_CARDINAL, f.UNIT_PROVIDENG_CARDINAL,
a.FUND_REDUCE_DATE, a.FUND_REDUCE_DATE,
......
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