Commit f45efdba authored by fangxinjiang's avatar fangxinjiang

人员附件其他附件编辑功能 fxj 2024-09-11

parent 9b0f192f
...@@ -251,7 +251,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T ...@@ -251,7 +251,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
// 更新附件信息 fxj 2024-09-09 // 更新附件信息 fxj 2024-09-09
updateOtherAtta(employeeInfo); updateOtherAtta(employeeInfo);
// 获取最新附件信息 fxj 2024-09-09 // 获取最新附件信息 fxj 2024-09-09
getAttaInfo(old); getAttaInfo(employeeInfo);
// 记录变更日志 // 记录变更日志
tEmployeeLogService.saveModificationRecord(CommonConstants.dingleDigitIntArray[0], old.getId(), "", old, employeeInfo); tEmployeeLogService.saveModificationRecord(CommonConstants.dingleDigitIntArray[0], old.getId(), "", old, employeeInfo);
...@@ -305,14 +305,14 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T ...@@ -305,14 +305,14 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
} }
} }
private void getAttaInfo(TEmployeeInfo old) { private void getAttaInfo(TEmployeeInfo emp) {
List<TEmpOtherFile> otherFiles = otherFileService.getListByEmpId(old.getId()); List<TEmpOtherFile> otherFiles = otherFileService.getListByEmpId(emp.getId());
if (Common.isEmpty(otherFiles)){ if (Common.isEmpty(otherFiles)){
for (TEmpOtherFile file:otherFiles){ for (TEmpOtherFile file:otherFiles){
file.setAttaList(attaInfoService.list(Wrappers.<TAttaInfo>query().lambda().eq(TAttaInfo::getDomainId,file.getId()))); file.setAttaList(attaInfoService.list(Wrappers.<TAttaInfo>query().lambda().eq(TAttaInfo::getDomainId,file.getId())));
} }
} }
old.setOtherFiles(otherFiles); emp.setOtherFiles(otherFiles);
} }
@Override @Override
......
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