refactor(vendor): 移除冗余方法并统一继承EntityService
重构供应商相关服务类,移除重复的getById等方法,统一继承EntityService基类 更新文档中的服务类检查状态
This commit is contained in:
@@ -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 | 是 |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user