refactor: 使用常量替换硬编码方法名并优化参数构建

- 在ServiceConstant中添加常用方法名常量
- 使用ParamUtils重构多处参数构建逻辑
- 统一QueryService中的方法名调用为常量
- 修复CompanyOldNameService中的字段别名问题
This commit is contained in:
2025-12-17 16:56:45 +08:00
parent 4e738bea3c
commit 880671a5a9
7 changed files with 24 additions and 17 deletions

View File

@@ -210,7 +210,7 @@ public class CompanyOldNameService extends EntityService<CompanyOldName, Company
@Override
protected String aliasFor(String field, JsonNode filterNode) {
if ("company".equals(field)) {
return "company.id";
return "companyId";
}
return super.aliasFor(field, filterNode);
}