refactor(service): 重构服务层代码,统一继承EntityService基类

refactor(repository): 将JpaRepository替换为自定义的MyRepository接口
refactor(tasker): 将findById方法更名为getById以提高一致性
docs: 更新server_entity_services.md文档中的服务实现状态
This commit is contained in:
2025-12-14 14:47:51 +08:00
parent db07befffe
commit 18057a657e
36 changed files with 732 additions and 1006 deletions

View File

@@ -272,7 +272,7 @@ public class CompanyCustomerEvaluationFormUpdateTask extends Tasker<Object> impl
baseRow++;
CompanyCustomerFile customerFile = form.getCustomerFile();
if (!Hibernate.isInitialized(customerFile)) {
customerFile = getCompanyCustomerFileService().findById(customerFile.getId());
customerFile = getCompanyCustomerFileService().getById(customerFile.getId());
holder.debug("延迟加载评价表文件信息文件ID" + customerFile.getId());
}
setCellValue(sheet, baseRow, 2, String.valueOf(customerFile.getSignDate()));

View File

@@ -25,7 +25,7 @@ public class CustomerFileMoveTasker extends Tasker<Object> implements WebSocketS
@Override
public void init(JsonNode argsNode) {
if (argsNode != null && argsNode.size() > 0) {
this.file = getCompanyCustomerFileService().findById(argsNode.get(0).asInt());
this.file = getCompanyCustomerFileService().getById(argsNode.get(0).asInt());
}
}