修复bug若干

This commit is contained in:
zhou-hao
2019-11-27 21:37:14 +08:00
parent aeae03cd38
commit d81f08c9e0
3 changed files with 9 additions and 7 deletions

View File

@@ -344,12 +344,12 @@ public class DimensionDataAccessHandler implements DataAccessHandler {
Set<Annotation> methodAnnotation = AnnotatedElementUtils.findAllMergedAnnotations(method, ann);
Set<Annotation> classAnnotation = AnnotatedElementUtils.findAllMergedAnnotations(target, ann);
if (CollectionUtils.isEmpty(methodAnnotation)) {
return Collections.emptyMap();
}
List<Annotation> all = new ArrayList<>(classAnnotation);
all.addAll(methodAnnotation);
if (CollectionUtils.isEmpty(all)) {
return Collections.emptyMap();
}
Map<String, MappingInfo> mappingInfoMap = new HashMap<>();
for (Annotation annotation : all) {
if (annotation instanceof DimensionDataAccess) {