Browse Source

员工关系附件接口修改

zhaopeiqing 7 months ago
parent
commit
a9ab68392b

+ 2 - 12
yudao-module-personnel/yudao-module-relations-biz/src/main/java/cn/iocoder/yudao/module/relations/service/contract/RelationsContractServiceImpl.java

@@ -86,7 +86,7 @@ public class RelationsContractServiceImpl implements RelationsContractService {
         }
         contractMapper.insert(contractInfo);
         // 保存业务uuid到附件中
-        this.saveFileList(createReqVO.getFileIdList(), infoId);
+        fileApi.updateFileBiz(createReqVO.getFileIdList(), infoId);
         // 返回
         return contractInfo.getId();
     }
@@ -97,7 +97,7 @@ public class RelationsContractServiceImpl implements RelationsContractService {
         // 校验存在
         validateContractInfoExists(updateReqVO.getId());
         // 保存业务uuid到附件中
-        this.saveFileList(updateReqVO.getFileIdList(), updateReqVO.getContractId());
+        fileApi.updateFileBiz(updateReqVO.getFileIdList(), updateReqVO.getContractId());
         // 更新
         RelationsContractDO updateObj = BeanUtils.toBean(updateReqVO, RelationsContractDO.class);
         contractMapper.updateById(updateObj);
@@ -215,14 +215,4 @@ public class RelationsContractServiceImpl implements RelationsContractService {
         return contractMapper.selectList(lambdaQueryWrapper);
     }
 
-    /**
-     * 保存业务uuid到附件中
-     */
-    @TenantIgnore
-    private void saveFileList(List<Long> fileIdList, String serviceId) {
-        if (CollectionUtil.isNotEmpty(fileIdList) && StrUtil.isNotEmpty(serviceId)) {
-            fileApi.updateFileBiz(fileIdList, serviceId);
-        }
-    }
-
 }

+ 2 - 12
yudao-module-personnel/yudao-module-relations-biz/src/main/java/cn/iocoder/yudao/module/relations/service/conversion/RelationsConversionServiceImpl.java

@@ -68,7 +68,7 @@ public class RelationsConversionServiceImpl implements RelationsConversionServic
         }
         conversionMapper.insert(conversion);
         // 保存业务uuid到附件中
-        this.saveFileList(createReqVO.getFileIdList(), infoId);
+        fileApi.updateFileBiz(createReqVO.getFileIdList(), infoId);
         // 返回
         return conversion.getId();
     }
@@ -79,7 +79,7 @@ public class RelationsConversionServiceImpl implements RelationsConversionServic
         // 校验存在
         validateConversionExists(updateReqVO.getId());
         // 保存业务uuid到附件中
-        this.saveFileList(updateReqVO.getFileIdList(), updateReqVO.getConversionId());
+        fileApi.updateFileBiz(updateReqVO.getFileIdList(), updateReqVO.getConversionId());
         // 更新
         RelationsConversionDO updateObj = BeanUtils.toBean(updateReqVO, RelationsConversionDO.class);
         conversionMapper.updateById(updateObj);
@@ -149,14 +149,4 @@ public class RelationsConversionServiceImpl implements RelationsConversionServic
         return conversionMapper.selectPage(pageReqVO);
     }
 
-    /**
-     * 保存业务uuid到附件中
-     */
-    @TenantIgnore
-    private void saveFileList(List<Long> fileIdList, String serviceId) {
-        if (CollectionUtil.isNotEmpty(fileIdList) && StrUtil.isNotEmpty(serviceId)) {
-            fileApi.updateFileBiz(fileIdList, serviceId);
-        }
-    }
-
 }

+ 2 - 12
yudao-module-personnel/yudao-module-relations-biz/src/main/java/cn/iocoder/yudao/module/relations/service/entry/RelationsEntryServiceImpl.java

@@ -67,7 +67,7 @@ public class RelationsEntryServiceImpl implements RelationsEntryService {
         }
         entryMapper.insert(entry);
         // 保存业务uuid到附件中
-        this.saveFileList(createReqVO.getFileIdList(), infoId);
+        fileApi.updateFileBiz(createReqVO.getFileIdList(), infoId);
         // 返回
         return entry.getId();
     }
@@ -78,7 +78,7 @@ public class RelationsEntryServiceImpl implements RelationsEntryService {
         // 校验存在
         validateEntryExists(updateReqVO.getId());
         // 保存业务uuid到附件中
-        this.saveFileList(updateReqVO.getFileIdList(), updateReqVO.getEntryId());
+        fileApi.updateFileBiz(updateReqVO.getFileIdList(), updateReqVO.getEntryId());
         // 更新
         RelationsEntryDO updateObj = BeanUtils.toBean(updateReqVO, RelationsEntryDO.class);
         entryMapper.updateById(updateObj);
@@ -148,14 +148,4 @@ public class RelationsEntryServiceImpl implements RelationsEntryService {
         return entryMapper.selectPage(pageReqVO);
     }
 
-    /**
-     * 保存业务uuid到附件中
-     */
-    @TenantIgnore
-    private void saveFileList(List<Long> fileIdList, String serviceId) {
-        if (CollectionUtil.isNotEmpty(fileIdList) && StrUtil.isNotEmpty(serviceId)) {
-            fileApi.updateFileBiz(fileIdList, serviceId);
-        }
-    }
-
 }

+ 2 - 12
yudao-module-personnel/yudao-module-relations-biz/src/main/java/cn/iocoder/yudao/module/relations/service/renew/RelationsRenewServiceImpl.java

@@ -68,7 +68,7 @@ public class RelationsRenewServiceImpl implements RelationsRenewService {
         }
         renewMapper.insert(renew);
         // 保存业务uuid到附件中
-        this.saveFileList(createReqVO.getFileIdList(), infoId);
+        fileApi.updateFileBiz(createReqVO.getFileIdList(), infoId);
         // 返回
         return renew.getId();
     }
@@ -79,7 +79,7 @@ public class RelationsRenewServiceImpl implements RelationsRenewService {
         // 校验存在
         validateRenewExists(updateReqVO.getId());
         // 保存业务uuid到附件中
-        this.saveFileList(updateReqVO.getFileIdList(), updateReqVO.getRenewId());
+        fileApi.updateFileBiz(updateReqVO.getFileIdList(), updateReqVO.getRenewId());
         // 更新
         RelationsRenewDO updateObj = BeanUtils.toBean(updateReqVO, RelationsRenewDO.class);
         renewMapper.updateById(updateObj);
@@ -149,14 +149,4 @@ public class RelationsRenewServiceImpl implements RelationsRenewService {
         return renewMapper.selectPage(pageReqVO);
     }
 
-    /**
-     * 保存业务uuid到附件中
-     */
-    @TenantIgnore
-    private void saveFileList(List<Long> fileIdList, String serviceId) {
-        if (CollectionUtil.isNotEmpty(fileIdList) && StrUtil.isNotEmpty(serviceId)) {
-            fileApi.updateFileBiz(fileIdList, serviceId);
-        }
-    }
-
 }

+ 2 - 12
yudao-module-personnel/yudao-module-relations-biz/src/main/java/cn/iocoder/yudao/module/relations/service/turnover/RelationsTurnoverServiceImpl.java

@@ -68,7 +68,7 @@ public class RelationsTurnoverServiceImpl implements RelationsTurnoverService {
         }
         turnoverMapper.insert(turnover);
         // 保存业务uuid到附件中
-        this.saveFileList(createReqVO.getFileIdList(), infoId);
+        fileApi.updateFileBiz(createReqVO.getFileIdList(), infoId);
         // 返回
         return turnover.getId();
     }
@@ -79,7 +79,7 @@ public class RelationsTurnoverServiceImpl implements RelationsTurnoverService {
         // 校验存在
         validateTurnoverExists(updateReqVO.getId());
         // 保存业务uuid到附件中
-        this.saveFileList(updateReqVO.getFileIdList(), updateReqVO.getTurnoverId());
+        fileApi.updateFileBiz(updateReqVO.getFileIdList(), updateReqVO.getTurnoverId());
         // 更新
         RelationsTurnoverDO updateObj = BeanUtils.toBean(updateReqVO, RelationsTurnoverDO.class);
         turnoverMapper.updateById(updateObj);
@@ -149,14 +149,4 @@ public class RelationsTurnoverServiceImpl implements RelationsTurnoverService {
         return turnoverMapper.selectPage(pageReqVO);
     }
 
-    /**
-     * 保存业务uuid到附件中
-     */
-    @TenantIgnore
-    private void saveFileList(List<Long> fileIdList, String serviceId) {
-        if (CollectionUtil.isNotEmpty(fileIdList) && StrUtil.isNotEmpty(serviceId)) {
-            fileApi.updateFileBiz(fileIdList, serviceId);
-        }
-    }
-
 }