浏览代码

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

RuoYi 4 年之前
父节点
当前提交
10ac990d36
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ruoyi-generator/src/main/resources/vm/java/serviceImpl.java.vm

+ 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)