refactor: 使用常量替换硬编码方法名并优化参数构建
- 在ServiceConstant中添加常用方法名常量 - 使用ParamUtils重构多处参数构建逻辑 - 统一QueryService中的方法名调用为常量 - 修复CompanyOldNameService中的字段别名问题
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user