提交 da89d21c 编写于 作者: WodahsOrez's avatar WodahsOrez

lxm--执行之前,执行之后逻辑附加--fix1

上级 4b4e5c22
...@@ -499,7 +499,8 @@ export default class ${srfclassname('${item.getCodeName()}')}ServiceBase extends ...@@ -499,7 +499,8 @@ export default class ${srfclassname('${item.getCodeName()}')}ServiceBase extends
<#assign appdeAction = singleAppMethod.getPSDEAction() /> <#assign appdeAction = singleAppMethod.getPSDEAction() />
<#-- BEGIN: 执行之前逻辑附加 --> <#-- BEGIN: 执行之前逻辑附加 -->
<#if appdeAction.getBeforePSDEActionLogics?? && appdeAction.getBeforePSDEActionLogics()??> <#if appdeAction.getBeforePSDEActionLogics?? && appdeAction.getBeforePSDEActionLogics()??>
<#list appdeAction.getBeforePSDEActionLogics() as appdelogic> <#list appdeAction.getBeforePSDEActionLogics() as actionlogic>
<#assign appdelogic = actionlogic.getPSDELogic() />
let ${appdelogic.getCodeName()?lower_case}:${srfclassname('${appdelogic.getCodeName()}')}Logic = new ${srfclassname('${appdelogic.getCodeName()}')}Logic({context:JSON.parse(JSON.stringify(context)),data:JSON.parse(JSON.stringify(data))}); let ${appdelogic.getCodeName()?lower_case}:${srfclassname('${appdelogic.getCodeName()}')}Logic = new ${srfclassname('${appdelogic.getCodeName()}')}Logic({context:JSON.parse(JSON.stringify(context)),data:JSON.parse(JSON.stringify(data))});
data = await ${appdelogic.getCodeName()?lower_case}.onExecute(JSON.parse(JSON.stringify(context)),JSON.parse(JSON.stringify(data)),isloading?true:false); data = await ${appdelogic.getCodeName()?lower_case}.onExecute(JSON.parse(JSON.stringify(context)),JSON.parse(JSON.stringify(data)),isloading?true:false);
</#list> </#list>
...@@ -517,7 +518,8 @@ export default class ${srfclassname('${item.getCodeName()}')}ServiceBase extends ...@@ -517,7 +518,8 @@ export default class ${srfclassname('${item.getCodeName()}')}ServiceBase extends
<#--是否存在前端处理逻辑end --> <#--是否存在前端处理逻辑end -->
<#-- BEGIN: 执行之后逻辑附加 --> <#-- BEGIN: 执行之后逻辑附加 -->
<#if appdeAction.getAfterPSDEActionLogics?? && appdeAction.getAfterPSDEActionLogics()??> <#if appdeAction.getAfterPSDEActionLogics?? && appdeAction.getAfterPSDEActionLogics()??>
<#list appdeAction.getAfterPSDEActionLogics() as appdelogic> <#list appdeAction.getAfterPSDEActionLogics() as actionlogic>
<#assign appdelogic = actionlogic.getPSDELogic() />
let ${appdelogic.getCodeName()?lower_case}:${srfclassname('${appdelogic.getCodeName()}')}Logic = new ${srfclassname('${appdelogic.getCodeName()}')}Logic({context:JSON.parse(JSON.stringify(context)),data:JSON.parse(JSON.stringify(res))}); let ${appdelogic.getCodeName()?lower_case}:${srfclassname('${appdelogic.getCodeName()}')}Logic = new ${srfclassname('${appdelogic.getCodeName()}')}Logic({context:JSON.parse(JSON.stringify(context)),data:JSON.parse(JSON.stringify(res))});
res = await ${appdelogic.getCodeName()?lower_case}.onExecute(JSON.parse(JSON.stringify(context)),JSON.parse(JSON.stringify(res)),isloading?true:false); res = await ${appdelogic.getCodeName()?lower_case}.onExecute(JSON.parse(JSON.stringify(context)),JSON.parse(JSON.stringify(res)),isloading?true:false);
</#list> </#list>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册