Commit 86e13883 authored by huyuchen's avatar huyuchen

huych-商险自动化逻辑调整

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