Browse Source

!54 fix 生成器生成的 service 和 serviceImpl 中 deleteWithValidByIds 参数字段类型错误
* fix 生成器生成的 service 和 serviceImpl 中 deleteWithValidByIds 参数字段类型错误

CharlieJohn 3 năm trước cách đây
mục cha
commit
8bda10c23c

+ 6 - 0
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>

+ 1 - 1
ruoyi-generator/src/main/resources/vm/java/service.java.vm

@@ -58,5 +58,5 @@ public interface I${ClassName}Service extends IServicePlus<${ClassName}> {
 	 * @param isValid 是否校验,true-删除前校验,false-不校验
 	 * @return
 	 */
-	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
+	Boolean deleteWithValidByIds(Collection<${pkColumn.javaType}> ids, Boolean isValid);
 }

+ 1 - 1
ruoyi-generator/src/main/resources/vm/java/serviceImpl.java.vm

@@ -101,7 +101,7 @@ public class ${ClassName}ServiceImpl extends ServiceImpl<${ClassName}Mapper, ${C
     }
 
     @Override
-    public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
+    public Boolean deleteWithValidByIds(Collection<${pkColumn.javaType}> ids, Boolean isValid) {
         if(isValid){
             //TODO 做一些业务上的校验,判断是否需要校验
         }