refactor: 统一方法命名,提高代码一致性

将 newContractGroup 重命名为 createNewEntity 以符合命名规范
将 findById 重命名为 getById 以保持方法命名一致性
This commit is contained in:
2025-12-14 13:14:19 +08:00
parent 94030a5a39
commit db07befffe
2 changed files with 2 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ public class ContractGroupSyncTask extends Tasker<Object> implements WebSocketSe
ContractGroupService service = getContractGroupService();
var contractGroup = service.findByCode(groupCode);
if (contractGroup == null) {
var newGroup = service.newContractGroup();
var newGroup = service.createNewEntity();
newGroup.setCode(groupCode);
newGroup.setName(groupName);
newGroup.setTitle(groupTitle);

View File

@@ -135,7 +135,7 @@ public class ProjectBidService implements IEntityService<ProjectBid>, QueryServi
if (vo.getEvaluationFileId() != null) {
CompanyCustomerEvaluationFormFileService evaluationFileService = SpringApp
.getBean(CompanyCustomerEvaluationFormFileService.class);
model.setEvaluationFile(evaluationFileService.findById(vo.getEvaluationFileId()));
model.setEvaluationFile(evaluationFileService.getById(vo.getEvaluationFileId()));
} else {
model.setEvaluationFile(null);
}