fixbug: 解决当只有AutoMappers时没有生成转换接口的问题

This commit is contained in:
linpeilie 2023-05-17 16:54:51 +08:00
parent 2f94254499
commit f9cc95fb55
2 changed files with 3 additions and 2 deletions

View File

@ -125,7 +125,8 @@ public class AutoMapperProcessor extends AbstractProcessor {
boolean hasAutoMapper = annotations.stream().anyMatch(this::isAutoMapperAnnotation);
final boolean hasAutoMapMapper = annotations.stream().anyMatch(this::isAutoMapMapperAnnotation);
final boolean hasAutoEnumMapper = annotations.stream().anyMatch(this::isAutoEnumMapperAnnotation);
if (!hasAutoMapper && !hasAutoMapMapper && !hasAutoEnumMapper) {
final boolean hasAutoMapMappers = annotations.stream().anyMatch(this::isAutoMappersAnnotation);
if (!hasAutoMapper && !hasAutoMapMapper && !hasAutoEnumMapper && !hasAutoMapMappers) {
return false;
}
// 刷新配置

View File

@ -17,7 +17,7 @@
</modules>
<properties>
<mapstruct-plus.version>1.2.3</mapstruct-plus.version>
<mapstruct-plus.version>1.2.4</mapstruct-plus.version>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>