Commit 02a036c1 authored by hongguangwu's avatar hongguangwu

MVP1.7.1 优化预入职

parent 4625c1a3
...@@ -455,6 +455,7 @@ public class TEmployeeInfo extends BaseEntity { ...@@ -455,6 +455,7 @@ public class TEmployeeInfo extends BaseEntity {
@Length(max = 50, message = "开户行总行不能超过50个字符") @Length(max = 50, message = "开户行总行不能超过50个字符")
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("开户行总行") @ExcelProperty("开户行总行")
@TableField(updateStrategy = FieldStrategy.IGNORED)
private String bankName; private String bankName;
/** /**
* 开户行省 * 开户行省
...@@ -462,6 +463,7 @@ public class TEmployeeInfo extends BaseEntity { ...@@ -462,6 +463,7 @@ public class TEmployeeInfo extends BaseEntity {
@ExcelAttribute(name = "开户行省",isArea = true) @ExcelAttribute(name = "开户行省",isArea = true)
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("开户行省") @ExcelProperty("开户行省")
@TableField(updateStrategy = FieldStrategy.IGNORED)
private String bankProvince; private String bankProvince;
/** /**
* 开户行市 * 开户行市
...@@ -469,6 +471,7 @@ public class TEmployeeInfo extends BaseEntity { ...@@ -469,6 +471,7 @@ public class TEmployeeInfo extends BaseEntity {
@ExcelAttribute(name = "开户行市",isArea = true,parentField = "bankProvince") @ExcelAttribute(name = "开户行市",isArea = true,parentField = "bankProvince")
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("开户行市") @ExcelProperty("开户行市")
@TableField(updateStrategy = FieldStrategy.IGNORED)
private String bankCity; private String bankCity;
/** /**
* 开户行支行 * 开户行支行
...@@ -477,6 +480,7 @@ public class TEmployeeInfo extends BaseEntity { ...@@ -477,6 +480,7 @@ public class TEmployeeInfo extends BaseEntity {
@Length(max = 50, message = "开户行支行不能超过50个字符") @Length(max = 50, message = "开户行支行不能超过50个字符")
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("开户行支行") @ExcelProperty("开户行支行")
@TableField(updateStrategy = FieldStrategy.IGNORED)
private String bankSubName; private String bankSubName;
/** /**
* 银行卡号 * 银行卡号
...@@ -485,6 +489,7 @@ public class TEmployeeInfo extends BaseEntity { ...@@ -485,6 +489,7 @@ public class TEmployeeInfo extends BaseEntity {
@Length(max = 50, message = "银行卡号不能超过50个字符") @Length(max = 50, message = "银行卡号不能超过50个字符")
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("银行卡号") @ExcelProperty("银行卡号")
@TableField(updateStrategy = FieldStrategy.IGNORED)
private String bankNo; private String bankNo;
/** /**
* 计税月份 * 计税月份
...@@ -493,6 +498,7 @@ public class TEmployeeInfo extends BaseEntity { ...@@ -493,6 +498,7 @@ public class TEmployeeInfo extends BaseEntity {
@Length(max = 6, message = "计税月份不能超过6个字符") @Length(max = 6, message = "计税月份不能超过6个字符")
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("计税月份") @ExcelProperty("计税月份")
@TableField(updateStrategy = FieldStrategy.IGNORED)
private String taxMonth; private String taxMonth;
/** /**
* 通信地址省 * 通信地址省
......
...@@ -219,10 +219,10 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE ...@@ -219,10 +219,10 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
} }
// 审核通过并且有在项,取在项 // 审核通过并且有在项,取在项
boolean empFirst = false; boolean empFirst = false;
if ((main == null || (main != null && CommonConstants.FOUR_STRING.equals(main.getStatus()))) && employee != null && project != null) {
empFirst = true;
}
if (main != null) { if (main != null) {
if (CommonConstants.FOUR_STRING.equals(main.getStatus()) && employee != null && project != null) {
empFirst = true;
}
// 2024-7-3 17:23:50 倩倩要求放开状态拦截,前端加按钮禁用即可 // 2024-7-3 17:23:50 倩倩要求放开状态拦截,前端加按钮禁用即可
/* (CommonConstants.ONE_STRING.equals(main.getStatus()) /* (CommonConstants.ONE_STRING.equals(main.getStatus())
|| CommonConstants.TWO_STRING.equals(main.getStatus())) || CommonConstants.TWO_STRING.equals(main.getStatus()))
...@@ -426,7 +426,7 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE ...@@ -426,7 +426,7 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
tPreEmpBadRecord.setCreateBy(user.getId()); tPreEmpBadRecord.setCreateBy(user.getId());
tPreEmpBadRecord.setCreateName(user.getNickname()); tPreEmpBadRecord.setCreateName(user.getNickname());
tPreEmpBadRecord.setCreateTime(LocalDateTime.now()); tPreEmpBadRecord.setCreateTime(LocalDateTime.now());
if (Common.isEmpty(preId)) { if (Common.isEmpty(preId) && !empFirst) {
tPreEmpBadRecordService.save(tPreEmpBadRecord); tPreEmpBadRecordService.save(tPreEmpBadRecord);
} }
} }
...@@ -455,7 +455,7 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE ...@@ -455,7 +455,7 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
tPreEmpContactInfo.setCreateBy(user.getId()); tPreEmpContactInfo.setCreateBy(user.getId());
tPreEmpContactInfo.setCreateName(user.getNickname()); tPreEmpContactInfo.setCreateName(user.getNickname());
tPreEmpContactInfo.setCreateTime(LocalDateTime.now()); tPreEmpContactInfo.setCreateTime(LocalDateTime.now());
if (Common.isEmpty(preId)) { if (Common.isEmpty(preId) && !empFirst) {
tPreEmpContactInfoService.save(tPreEmpContactInfo); tPreEmpContactInfoService.save(tPreEmpContactInfo);
} }
} }
...@@ -491,7 +491,7 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE ...@@ -491,7 +491,7 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
tPreEmpDisabilityInfo.setCreateBy(user.getId()); tPreEmpDisabilityInfo.setCreateBy(user.getId());
tPreEmpDisabilityInfo.setCreateName(user.getNickname()); tPreEmpDisabilityInfo.setCreateName(user.getNickname());
tPreEmpDisabilityInfo.setCreateTime(LocalDateTime.now()); tPreEmpDisabilityInfo.setCreateTime(LocalDateTime.now());
if (Common.isEmpty(preId)) { if (Common.isEmpty(preId) && !empFirst) {
tPreEmpDisabilityInfoService.save(tPreEmpDisabilityInfo); tPreEmpDisabilityInfoService.save(tPreEmpDisabilityInfo);
} }
} }
...@@ -538,7 +538,7 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE ...@@ -538,7 +538,7 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
tPreEmpEducation.setCreateBy(user.getId()); tPreEmpEducation.setCreateBy(user.getId());
tPreEmpEducation.setCreateName(user.getNickname()); tPreEmpEducation.setCreateName(user.getNickname());
tPreEmpEducation.setCreateTime(LocalDateTime.now()); tPreEmpEducation.setCreateTime(LocalDateTime.now());
if (Common.isEmpty(preId)) { if (Common.isEmpty(preId) && !empFirst) {
tPreEmpEducationService.save(tPreEmpEducation); tPreEmpEducationService.save(tPreEmpEducation);
} }
} else { } else {
...@@ -1068,6 +1068,7 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE ...@@ -1068,6 +1068,7 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
tPreEmployeeInfo.setTaxMonth(tSalaryEmployee.getTaxMonth()); tPreEmployeeInfo.setTaxMonth(tSalaryEmployee.getTaxMonth());
} }
} else { } else {
tPreEmployeeInfo.setBankNo(null);
tPreEmployeeInfo.setBankName(null); tPreEmployeeInfo.setBankName(null);
tPreEmployeeInfo.setBankSubName(null); tPreEmployeeInfo.setBankSubName(null);
tPreEmployeeInfo.setBankProvince(null); tPreEmployeeInfo.setBankProvince(null);
...@@ -1730,6 +1731,13 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE ...@@ -1730,6 +1731,13 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
} }
// 有在项,则更新薪资人员 // 有在项,则更新薪资人员
boolean isMustUpdateSalary = false; boolean isMustUpdateSalary = false;
if (tPreEmployeeInfo != null && Common.isEmpty(tPreEmployeeInfo.getBankNo())) {
tPreEmployeeInfo.setBankName(null);
tPreEmployeeInfo.setBankSubName(null);
tPreEmployeeInfo.setBankProvince(null);
tPreEmployeeInfo.setBankCity(null);
tPreEmployeeInfo.setTaxMonth(null);
}
if (tPreEmployeeInfo != null && Common.isNotNull(tPreEmployeeInfo.getOldId()) if (tPreEmployeeInfo != null && Common.isNotNull(tPreEmployeeInfo.getOldId())
&& Common.isNotNull(tPreEmployeeProject.getOldId())) { && Common.isNotNull(tPreEmployeeProject.getOldId())) {
empId = tPreEmployeeInfo.getOldId(); empId = tPreEmployeeInfo.getOldId();
......
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