Skip to content

Commit

Permalink
调整判断逻辑顺序
Browse files Browse the repository at this point in the history
  • Loading branch information
qmdx committed Aug 25, 2019
1 parent d836b6f commit 97fc7b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ protected String formatLogicDeleteSql(TableFieldInfo field, boolean deleteValue)
* 自动构建 resultMap 并注入(如果条件符合的话)
*/
void initResultMapIfNeed() {
if (resultMap == null && autoInitResultMap) {
if (autoInitResultMap && null == resultMap) {
String id = currentNamespace + DOT + MYBATIS_PLUS + UNDERSCORE + entityType.getSimpleName();
List<ResultMapping> resultMappings = new ArrayList<>();
if (keyType != null) {
Expand Down

0 comments on commit 97fc7b1

Please sign in to comment.