refactor: 统一方法命名,提高代码一致性
将 newContractGroup 重命名为 createNewEntity 以符合命名规范 将 findById 重命名为 getById 以保持方法命名一致性
This commit is contained in:
@@ -100,7 +100,7 @@ public class ContractGroupSyncTask extends Tasker<Object> implements WebSocketSe
|
|||||||
ContractGroupService service = getContractGroupService();
|
ContractGroupService service = getContractGroupService();
|
||||||
var contractGroup = service.findByCode(groupCode);
|
var contractGroup = service.findByCode(groupCode);
|
||||||
if (contractGroup == null) {
|
if (contractGroup == null) {
|
||||||
var newGroup = service.newContractGroup();
|
var newGroup = service.createNewEntity();
|
||||||
newGroup.setCode(groupCode);
|
newGroup.setCode(groupCode);
|
||||||
newGroup.setName(groupName);
|
newGroup.setName(groupName);
|
||||||
newGroup.setTitle(groupTitle);
|
newGroup.setTitle(groupTitle);
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ public class ProjectBidService implements IEntityService<ProjectBid>, QueryServi
|
|||||||
if (vo.getEvaluationFileId() != null) {
|
if (vo.getEvaluationFileId() != null) {
|
||||||
CompanyCustomerEvaluationFormFileService evaluationFileService = SpringApp
|
CompanyCustomerEvaluationFormFileService evaluationFileService = SpringApp
|
||||||
.getBean(CompanyCustomerEvaluationFormFileService.class);
|
.getBean(CompanyCustomerEvaluationFormFileService.class);
|
||||||
model.setEvaluationFile(evaluationFileService.findById(vo.getEvaluationFileId()));
|
model.setEvaluationFile(evaluationFileService.getById(vo.getEvaluationFileId()));
|
||||||
} else {
|
} else {
|
||||||
model.setEvaluationFile(null);
|
model.setEvaluationFile(null);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user