diff --git a/ym-generator/src/main/resources/templates/DTO.java.vm b/ym-generator/src/main/resources/templates/DTO.java.vm index 8daa30e..74beb9b 100644 --- a/ym-generator/src/main/resources/templates/DTO.java.vm +++ b/ym-generator/src/main/resources/templates/DTO.java.vm @@ -7,9 +7,8 @@ import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; -#if(${hasBigDecimal}) import java.math.BigDecimal; -#end + /** * ${table.comment} diff --git a/ym-generator/src/main/resources/templates/Excel.java.vm b/ym-generator/src/main/resources/templates/Excel.java.vm index df69096..ef548ac 100644 --- a/ym-generator/src/main/resources/templates/Excel.java.vm +++ b/ym-generator/src/main/resources/templates/Excel.java.vm @@ -3,9 +3,9 @@ package ${package.Parent}.excel; import cn.afterturn.easypoi.excel.annotation.Excel; import lombok.Data; -#if(${hasBigDecimal}) +import java.time.LocalDateTime; import java.math.BigDecimal; -#end + import java.util.Date; /**