Explorar o código

修复生成主子表外键名错误

RuoYi %!s(int64=4) %!d(string=hai) anos
pai
achega
10ac990d36

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

@@ -185,7 +185,7 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service
             List<${subClassName}> list = new ArrayList<${subClassName}>();
             for (${subClassName} ${subclassName} : ${subclassName}List)
             {
-                ${subclassName}.set${pkColumn.subTableFkClassName}(${pkColumn.javaField});
+                ${subclassName}.set${subTableFkClassName}(${pkColumn.javaField});
                 list.add(${subclassName});
             }
             if (list.size() > 0)