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

启用新模式附加逻辑

上级 e457df05
......@@ -215,7 +215,7 @@ public class ${item.getCodeName()}ServiceImpl extends ServiceImpl<${de.getCodeNa
<@outputTestAction deaction "delogic"/>
<#comment>附加数据逻辑-操作前</#comment>
<@addBoforeLogic deaction/>
${deaction.getPSDELogic().getCodeName()?lower_case}Logic.execute(et);
<#--${deaction.getPSDELogic().getCodeName()?lower_case}Logic.execute(et);-->
<#comment>附加数据逻辑-操作后</#comment>
<@addAfterLogic deaction/>
return et ;
......@@ -2329,50 +2329,50 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
</#if>
<#macro buildEntityParam deaction>
<#comment>由于getremove参数为key,构造entity以便传入逻辑中</#comment>
<#assign tempEntityName="et">
<#if deaction.getPSDEActionLogics()??>
<#list deaction.getPSDEActionLogics() as actionlogic>
<#if actionlogic.isValid()==true && actionlogic.isInternalLogic() && actionlogic.getPSDELogic().isEnableBackend()>
<#if deaction.getCodeName()?lower_case == "get">
<#assign tempEntityName="tempET">
</#if>
${de.codeName} ${tempEntityName}=new ${de.codeName}();
<#if keyfield??>
${tempEntityName}.set("${keyfield.codeName?lower_case}",key);
</#if>
<#break>
</#if>
</#list>
</#if>
<#--<#comment>由于getremove参数为key,构造entity以便传入逻辑中</#comment>-->
<#--<#assign tempEntityName="et">-->
<#--<#if deaction.getPSDEActionLogics()??>-->
<#--<#list deaction.getPSDEActionLogics() as actionlogic>-->
<#--<#if actionlogic.isValid()==true && actionlogic.isInternalLogic() && actionlogic.getPSDELogic().isEnableBackend()>-->
<#--<#if deaction.getCodeName()?lower_case == "get">-->
<#--<#assign tempEntityName="tempET">-->
<#--</#if>-->
<#--${de.codeName} ${tempEntityName}=new ${de.codeName}();-->
<#--<#if keyfield??>-->
<#--${tempEntityName}.set("${keyfield.codeName?lower_case}",key);-->
<#--</#if>-->
<#--<#break>-->
<#--</#if>-->
<#--</#list>-->
<#--</#if>-->
</#macro>
<#comment>Get行为附加逻辑-操作前</#comment>
<#macro addGetActionBoforeLogic deaction>
<#if deaction.getPSDEActionLogics()??>
<#list deaction.getPSDEActionLogics() as actionlogic>
<#if actionlogic.getAttachMode()=='BEFORE' && actionlogic.isValid()==true>
<#if actionlogic.isInternalLogic() && actionlogic.getPSDELogic().isEnableBackend()>
${actionlogic.getPSDELogic().getCodeName()?lower_case}Logic.execute(tempET);
</#if>
</#if>
</#list>
</#if>
<#--<#if deaction.getPSDEActionLogics()??>-->
<#--<#list deaction.getPSDEActionLogics() as actionlogic>-->
<#--<#if actionlogic.getAttachMode()=='BEFORE' && actionlogic.isValid()==true>-->
<#--<#if actionlogic.isInternalLogic() && actionlogic.getPSDELogic().isEnableBackend()>-->
<#--${actionlogic.getPSDELogic().getCodeName()?lower_case}Logic.execute(tempET);-->
<#--</#if>-->
<#--</#if>-->
<#--</#list>-->
<#--</#if>-->
</#macro>
<#comment>附加逻辑-操作前</#comment>
<#macro addBoforeLogic deaction>
<#if deaction.getBeforePSDEActionLogics()??>
<#list deaction.getBeforePSDEActionLogics() as actionlogic>
<#if actionlogic.isValid()==true>
<#if actionlogic.isInternalLogic() && actionlogic.getPSDELogic().isEnableBackend()>
${actionlogic.getPSDELogic().getCodeName()?lower_case}Logic.execute(et);
<#elseif (actionlogic.getDstPSDE()!'')!='' && (actionlogic.getDstPSDEAction()!'')!='' && actionlogic.getDstPSDEAction().isEnableBackend()>
<@addActionLogic deaction actionlogic/>
</#if>
</#if>
</#list>
</#if>
<#--<#if deaction.getBeforePSDEActionLogics()??>-->
<#--<#list deaction.getBeforePSDEActionLogics() as actionlogic>-->
<#--<#if actionlogic.isValid()==true>-->
<#--<#if actionlogic.isInternalLogic() && actionlogic.getPSDELogic().isEnableBackend()>-->
<#--${actionlogic.getPSDELogic().getCodeName()?lower_case}Logic.execute(et);-->
<#--<#elseif (actionlogic.getDstPSDE()!'')!='' && (actionlogic.getDstPSDEAction()!'')!='' && actionlogic.getDstPSDEAction().isEnableBackend()>-->
<#--<@addActionLogic deaction actionlogic/>-->
<#--</#if>-->
<#--</#if>-->
<#--</#list>-->
<#--</#if>-->
</#macro>
<#comment>附加实体行为</#comment>
......@@ -2429,17 +2429,17 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
<#comment>附加逻辑-操作后</#comment>
<#macro addAfterLogic deaction>
<#if deaction.getAfterPSDEActionLogics()??>
<#list deaction.getAfterPSDEActionLogics() as actionlogic>
<#if actionlogic.isValid()==true>
<#if actionlogic.isInternalLogic() && actionlogic.getPSDELogic().isEnableBackend()>
${actionlogic.getPSDELogic().getCodeName()?lower_case}Logic.execute(et);
<#elseif (actionlogic.getDstPSDE()!'')!='' && (actionlogic.getDstPSDEAction()!'')!='' && actionlogic.getDstPSDEAction().isEnableBackend()>
<@addActionLogic deaction actionlogic/>
</#if>
</#if>
</#list>
</#if>
<#--<#if deaction.getAfterPSDEActionLogics()??>-->
<#--<#list deaction.getAfterPSDEActionLogics() as actionlogic>-->
<#--<#if actionlogic.isValid()==true>-->
<#--<#if actionlogic.isInternalLogic() && actionlogic.getPSDELogic().isEnableBackend()>-->
<#--${actionlogic.getPSDELogic().getCodeName()?lower_case}Logic.execute(et);-->
<#--<#elseif (actionlogic.getDstPSDE()!'')!='' && (actionlogic.getDstPSDEAction()!'')!='' && actionlogic.getDstPSDEAction().isEnableBackend()>-->
<#--<@addActionLogic deaction actionlogic/>-->
<#--</#if>-->
<#--</#if>-->
<#--</#list>-->
<#--</#if>-->
</#macro>
<#macro importDELogic deLogic>
<#if deLogic.isEnableBackend()>
......
......@@ -4,20 +4,20 @@ TARGET=PSDELOGIC
<#if item.isEnableBackend()>
package ${pub.getPKGCodeName()}.core.${item.getPSDataEntity().getPSSystemModule().getCodeName()?lower_case}.service.logic;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
<#--import java.sql.Timestamp;-->
<#--import java.util.ArrayList;-->
<#--import java.util.List;-->
<#--import java.util.Map;-->
<#--import java.util.HashMap;-->
import ${pub.getPKGCodeName()}.core.${de.getPSSystemModule().getCodeName()?lower_case}.domain.${de.getCodeName()};
<#--import ${pub.getPKGCodeName()}.core.${de.getPSSystemModule().getCodeName()?lower_case}.domain.${de.getCodeName()};-->
/**
* 关系型数据实体[${item.codeName}] 对象
*/
<#--/**-->
<#--* 关系型数据实体[${item.codeName}] 对象-->
<#--*/-->
public interface I${de.codeName}${item.codeName}Logic {
void execute(${de.codeName} et) ;
<#--void execute(${de.codeName} et) ;-->
}
</#if>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册