File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
src/main/java/org/apache/ibatis/builder/annotation Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -354,11 +354,13 @@ void parseStatement(Method method) {
354
354
}
355
355
356
356
String resultMapId = null ;
357
- ResultMap resultMapAnnotation = method .getAnnotation (ResultMap .class );
358
- if (resultMapAnnotation != null ) {
359
- resultMapId = String .join ("," , resultMapAnnotation .value ());
360
- } else if (isSelect ) {
361
- resultMapId = generateResultMapName (method );
357
+ if (isSelect ) {
358
+ ResultMap resultMapAnnotation = method .getAnnotation (ResultMap .class );
359
+ if (resultMapAnnotation != null ) {
360
+ resultMapId = String .join ("," , resultMapAnnotation .value ());
361
+ } else {
362
+ resultMapId = generateResultMapName (method );
363
+ }
362
364
}
363
365
364
366
assistant .addMappedStatement (
You can’t perform that action at this time.
0 commit comments