refactor(vendor): 移除冗余方法并统一继承EntityService

重构供应商相关服务类,移除重复的getById等方法,统一继承EntityService基类
更新文档中的服务类检查状态
This commit is contained in:
2025-12-14 16:36:11 +08:00
parent be63ff62a4
commit e8c8305f40
11 changed files with 174 additions and 293 deletions

View File

@@ -69,6 +69,14 @@
1.5 检查`count`方法的功能实现是否与父类相同,相同则移除
1.6 检查`findAll`方法的功能实现是否与父类相同,相同则移除
1.7 检查`getById`方法的功能实现是否与父类相同,相同则移除
1.8 检查`findById`f方法的返回值类型须 Vo 类型,如未实现,则添加如下代码
```java
@Override
public VendorGroupRequireFileTypeVo findById(Integer id) {
return repository.findById(id).map(VendorGroupRequireFileType::toVo).orElse(null);
}
```
2. 缓存相关任务
2.1 确认Service类是否有 @CacheConfig 注解,没有注解,则没有应用缓存功能,跳过后续缓存检查
@@ -154,14 +162,14 @@
| ProjectService | 是 |
| ProjectTypeService | 是 |
| VendorApprovedFileService | 是 |
| VendorApprovedItemService | |
| VendorApprovedService | |
| VendorCatalogService | |
| VendorEntityService | |
| VendorFileService | |
| VendorFileTypeService | |
| VendorGroupRequireFileTypeService | |
| VendorGroupService | |
| VendorService | |
| VendorTypeService | |
| VendorApprovedItemService | |
| VendorApprovedService | |
| VendorCatalogService | |
| VendorEntityService | |
| VendorFileService | |
| VendorFileTypeService | |
| VendorGroupRequireFileTypeService | |
| VendorGroupService | |
| VendorService | |
| VendorTypeService | |