Commit 86e13883 authored by huyuchen's avatar huyuchen

huych-商险自动化逻辑调整

parent db36e50e
...@@ -488,16 +488,15 @@ public class EmployeeRegistrationPreServiceImpl extends ServiceImpl<EmployeeRegi ...@@ -488,16 +488,15 @@ public class EmployeeRegistrationPreServiceImpl extends ServiceImpl<EmployeeRegi
} }
} }
// 创建更新条件构造器
LambdaUpdateWrapper<TAttaInfo> updateWrapper = new LambdaUpdateWrapper<>();
// 设置更新条件和新值
updateWrapper.eq(TAttaInfo::getDomainId, employeeRegistrationPre.getId())
.set(TAttaInfo::getDomainId, CommonConstants.EMPTY_STRING);
// 执行更新操作,清空附件的域名ID
attaInfoService.update(updateWrapper);
// 检查附件ID列表是否不为空、更新附件 // 检查附件ID列表是否不为空、更新附件
if (Common.isNotNull(employeeRegistrationPre.getAttaIdList())) { if (Common.isNotNull(employeeRegistrationPre.getAttaIdList())) {
// 创建更新条件构造器
LambdaUpdateWrapper<TAttaInfo> updateWrapper = new LambdaUpdateWrapper<>();
// 设置更新条件和新值
updateWrapper.eq(TAttaInfo::getDomainId, employeeRegistrationPre.getId())
.set(TAttaInfo::getDomainId, CommonConstants.EMPTY_STRING);
// 执行更新操作,清空附件的域名ID
attaInfoService.update(updateWrapper);
// 遍历员工注册记录中的附件ID列表 // 遍历员工注册记录中的附件ID列表
TAttaInfo atta; TAttaInfo atta;
for (String attaId : employeeRegistrationPre.getAttaIdList()) { for (String attaId : employeeRegistrationPre.getAttaIdList()) {
......
...@@ -1458,16 +1458,15 @@ public class EmployeeRegistrationServiceImpl extends ServiceImpl<EmployeeRegistr ...@@ -1458,16 +1458,15 @@ public class EmployeeRegistrationServiceImpl extends ServiceImpl<EmployeeRegistr
* @param registration 员工注册对象,包含附件ID列表 * @param registration 员工注册对象,包含附件ID列表
*/ */
private void updateFileId(EmployeeRegistration registration) { private void updateFileId(EmployeeRegistration registration) {
// 创建更新条件构造器
LambdaUpdateWrapper<TCspAttaInfo> updateWrapper = new LambdaUpdateWrapper<>();
// 设置更新条件和新值
updateWrapper.eq(TCspAttaInfo::getDomainId, registration.getId())
.set(TCspAttaInfo::getDomainId, CommonConstants.EMPTY_STRING);
// 执行更新操作,清空附件的域名ID
tAttaInfoService.update(updateWrapper);
// 检查附件ID列表是否不为空 // 检查附件ID列表是否不为空
if (Common.isNotNull(registration.getAttaIdList()) && !registration.getAttaIdList().isEmpty()) { if (Common.isNotNull(registration.getAttaIdList()) && !registration.getAttaIdList().isEmpty()) {
// 创建更新条件构造器
LambdaUpdateWrapper<TCspAttaInfo> updateWrapper = new LambdaUpdateWrapper<>();
// 设置更新条件和新值
updateWrapper.eq(TCspAttaInfo::getDomainId, registration.getId())
.set(TCspAttaInfo::getDomainId, CommonConstants.EMPTY_STRING);
// 执行更新操作,清空附件的域名ID
tAttaInfoService.update(updateWrapper);
// 遍历员工注册记录中的附件ID列表 // 遍历员工注册记录中的附件ID列表
TCspAttaInfo atta; TCspAttaInfo atta;
for (String id : registration.getAttaIdList()) { for (String id : registration.getAttaIdList()) {
......
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