From 8bda10c23c7a7d772669e610e56e80de099b0747 Mon Sep 17 00:00:00 2001 From: CharlieJohn <8595764@qq.com> Date: 星期四, 17 六月 2021 09:30:52 +0800 Subject: [PATCH] !54 fix 生成器生成的 service 和 serviceImpl 中 deleteWithValidByIds 参数字段类型错误 * fix 生成器生成的 service 和 serviceImpl 中 deleteWithValidByIds 参数字段类型错误 --- ruoyi-framework/pom.xml | 6 ++++++ ruoyi-generator/src/main/resources/vm/java/service.java.vm | 2 +- ruoyi-generator/src/main/resources/vm/java/serviceImpl.java.vm | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ruoyi-framework/pom.xml b/ruoyi-framework/pom.xml index 4313ce5..236eb05 100644 --- a/ruoyi-framework/pom.xml +++ b/ruoyi-framework/pom.xml @@ -67,6 +67,12 @@ <artifactId>ruoyi-system</artifactId> </dependency> + <!-- jdk11 缂哄け渚濊禆 jaxb--> + <dependency> + <groupId>com.sun.xml.bind</groupId> + <artifactId>jaxb-impl</artifactId> + <version>${jaxb.version}</version> + </dependency> </dependencies> </project> diff --git a/ruoyi-generator/src/main/resources/vm/java/service.java.vm b/ruoyi-generator/src/main/resources/vm/java/service.java.vm index d5016d4..67e6baf 100644 --- a/ruoyi-generator/src/main/resources/vm/java/service.java.vm +++ b/ruoyi-generator/src/main/resources/vm/java/service.java.vm @@ -58,5 +58,5 @@ * @param isValid 鏄惁鏍¢獙,true-鍒犻櫎鍓嶆牎楠�,false-涓嶆牎楠� * @return */ - Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid); + Boolean deleteWithValidByIds(Collection<${pkColumn.javaType}> ids, Boolean isValid); } diff --git a/ruoyi-generator/src/main/resources/vm/java/serviceImpl.java.vm b/ruoyi-generator/src/main/resources/vm/java/serviceImpl.java.vm index c727ce6..9802b29 100644 --- a/ruoyi-generator/src/main/resources/vm/java/serviceImpl.java.vm +++ b/ruoyi-generator/src/main/resources/vm/java/serviceImpl.java.vm @@ -101,7 +101,7 @@ } @Override - public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) { + public Boolean deleteWithValidByIds(Collection<${pkColumn.javaType}> ids, Boolean isValid) { if(isValid){ //TODO 鍋氫竴浜涗笟鍔′笂鐨勬牎楠�,鍒ゆ柇鏄惁闇�瑕佹牎楠� } -- Gitblit v1.9.3