refactor: 使用常量替换硬编码方法名并优化参数构建
- 在ServiceConstant中添加常用方法名常量 - 使用ParamUtils重构多处参数构建逻辑 - 统一QueryService中的方法名调用为常量 - 修复CompanyOldNameService中的字段别名问题
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
package com.ecep.contract.constant;
|
||||
|
||||
public class ServiceConstant {
|
||||
public static final String COUNT_METHOD_NAME = "count";
|
||||
public static final String FIND_ALL_METHOD_NAME = "findAll";
|
||||
public static final String FIND_BY_ID_METHOD_NAME = "findById";
|
||||
public static final String DELETE_METHOD_NAME = "delete";
|
||||
public static final String SAVE_METHOD_NAME = "save";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user