提交 0f778ae6 编写于 作者: zhouweidong's avatar zhouweidong

数据导入外键值检查

上级 c50e6a04
......@@ -2800,10 +2800,10 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
else{
break;
}
<#comment>外键值校验</#comment>
<@checkForeignKey/>
<#--<#comment>外键值校验</#comment>-->
<#--<@checkForeignKey/>-->
}
<#if de.getMajorPSDER1Ns?? && de.getMajorPSDER1Ns()??>
<#if de.getMinorPSDERs?? && de.getMinorPSDERs()??>
<#list de.getMinorPSDERs() as MinorPSDER>
<#if MinorPSDER?? && MinorPSDER.getDERType()=='DER1N' && (MinorPSDER.getMajorPSDataEntity().getStorageMode()==1||MinorPSDER.getMajorPSDataEntity().getStorageMode()==2||MinorPSDER.getMajorPSDataEntity().getStorageMode()==4)>
<#if MinorPSDER.getMajorPSDataEntity?? && MinorPSDER.getMajorPSDataEntity()?? && MinorPSDER.getCodeName?? && MinorPSDER.getCodeName()??>
......@@ -3170,7 +3170,7 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
<#comment>外键值文本转成外键</#comment>
<#macro checkForeignKey>
<#if sys.codeName='Sample'>
//填充外键值
//填充外键值
<#list item.getMinorPSDERs() as minder>
<#if minder?? && minder.getDERType()=='DER1N'>
<#if minder.getMajorPSDataEntity?? && minder.getMajorPSDataEntity()?? && minder.getCodeName??>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册