优化attachMore返回的key值
This commit is contained in:
parent
1a4d50a25e
commit
1d34976269
|
@ -72,8 +72,8 @@ public class AttachMoreController {
|
||||||
);
|
);
|
||||||
result.put(S.toLowerCaseCamel(attachMoreDTO.getTarget()) + "KvList", keyValueList);
|
result.put(S.toLowerCaseCamel(attachMoreDTO.getTarget()) + "KvList", keyValueList);
|
||||||
} else if (type.equals(AttachMoreDTO.REF_TYPE.T)) {
|
} else if (type.equals(AttachMoreDTO.REF_TYPE.T)) {
|
||||||
String lowerCaseCamelEntityName = attachMoreDTO.getTarget();
|
String entityName = attachMoreDTO.getTarget();
|
||||||
String entityClassName = S.capFirst(lowerCaseCamelEntityName);
|
String entityClassName = S.capFirst(entityName);
|
||||||
Class<?> entityClass = ParserCache.getEntityClassByEntityLowerCaseCamel(entityClassName);
|
Class<?> entityClass = ParserCache.getEntityClassByEntityLowerCaseCamel(entityClassName);
|
||||||
if (V.isEmpty(entityClass)) {
|
if (V.isEmpty(entityClass)) {
|
||||||
log.warn("传递错误的实体类型:{}", attachMoreDTO.getTarget());
|
log.warn("传递错误的实体类型:{}", attachMoreDTO.getTarget());
|
||||||
|
@ -95,7 +95,7 @@ public class AttachMoreController {
|
||||||
.select(key, value)
|
.select(key, value)
|
||||||
.last("limit " + kvLimitCount)
|
.last("limit " + kvLimitCount)
|
||||||
);
|
);
|
||||||
result.put(lowerCaseCamelEntityName + "KvList", keyValueList);
|
result.put(S.uncapFirst(entityName) + "KvList", keyValueList);
|
||||||
} else {
|
} else {
|
||||||
log.error("错误的加载绑定类型:{}", attachMoreDTO.getType());
|
log.error("错误的加载绑定类型:{}", attachMoreDTO.getType());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue