Browse Source

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

pull/237/head
RuoYi 4 years ago
parent
commit
10ac990d36
  1. 2
      ruoyi-generator/src/main/resources/vm/java/serviceImpl.java.vm

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

Loading…
Cancel
Save