提交 1d0cce1d 编写于 作者: zhouweidong's avatar zhouweidong

实体父关系等价

上级 c6f8e218
......@@ -747,6 +747,19 @@ public class ${item.getCodeName()}ServiceImpl extends ServiceImpl<${de.getCodeNa
et.set${minorFieldCodeName}(${MajorEntityName}.get${majorFieldCodeName}());
</#if>
</#list>
<#comment>实体父关系等价</#comment>
<#if MinorPSDER.isEnablePDEREQ()?? && MinorPSDER.isEnablePDEREQ()==true && MinorPSDER.getMajorPPSDER1N()?? && MinorPSDER.getMinorPPSDER1N()?? >
<#assign marjorPPSDer1n=MinorPSDER.getMajorPPSDER1N()>
<#assign minorPPSDer1n=MinorPSDER.getMinorPPSDER1N()>
<#assign marjorkeyFieldCodeName=srfcaseformat(marjorPPSDer1n.getPSPickupDEField().codeName,'l_u2lC')?cap_first>
<#assign minorkeyFieldCodeName=srfcaseformat(minorPPSDer1n.getPSPickupDEField().codeName,'l_u2lC')?cap_first>
et.set${minorkeyFieldCodeName}(${MajorEntityName}.get${marjorkeyFieldCodeName}());
<#if marjorPPSDer1n.getPSPickupTextDEField()?? && minorPPSDer1n.getPSPickupTextDEField()??>
<#assign marjorPickupTextCodeName=srfcaseformat(marjorPPSDer1n.getPSPickupTextDEField().codeName,'l_u2lC')?cap_first>
<#assign minorPickupTextCodeName=srfcaseformat(minorPPSDer1n.getPSPickupTextDEField().codeName,'l_u2lC')?cap_first>
et.set${minorPickupTextCodeName}(${MajorEntityName}.get${marjorPickupTextCodeName}());
</#if>
</#if>
}
</#if>
</#if>
......@@ -2412,23 +2425,27 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
</#if>
</#macro>
<#macro importDELogic deLogic>
<#if deLogic.isEnableBackend()>
<#if !P.exists('DELOGIC',deLogic.getCodeName())>
@Autowired
@Lazy
protected ${pub.getPKGCodeName()}.core.${de.getPSSystemModule().getCodeName()?lower_case}.service.logic.I${de.getCodeName()}${deLogic.codeName}Logic ${deLogic.getCodeName()?lower_case}Logic;
</#if>
</#if>
</#macro>
<#macro importDEAction actionLogic>
<#assign actionLogicDE=actionLogic.getDstPSDE()>
<#assign actionLogicDEAction=actionLogic.getDstPSDEAction()>
<#if !P.exists('DER1N',actionLogicDE.getCodeName())>
<#assign actionLogicDE=actionLogic.getDstPSDE()>
<#assign actionLogicDEAction=actionLogic.getDstPSDEAction()>
<#if actionLogicDEAction.isEnableBackend()>
<#if !P.exists('DER1N',actionLogicDE.getCodeName())>
@Autowired
@Lazy
protected ${pub.getPKGCodeName()}.core.${actionLogicDE.getPSSystemModule().getCodeName()?lower_case}.service.I${actionLogicDE.getCodeName()}Service ${srfcaseformat(actionLogicDE.getCodeName(),'l_u2lC')}Service;
</#if>
</#if>
</#if>
</#macro>
<#comment>实体行为参数</#comment>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册