refactor(service): 重构服务层代码,统一继承EntityService基类
refactor(repository): 将JpaRepository替换为自定义的MyRepository接口 refactor(tasker): 将findById方法更名为getById以提高一致性 docs: 更新server_entity_services.md文档中的服务实现状态
This commit is contained in:
@@ -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()));
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user