提交 9dcdf59c 编写于 作者: tony001's avatar tony001

支持实体行为定义检查方法模式 --- fix3

上级 1a3e234c
......@@ -498,6 +498,9 @@ export default class ${srfclassname('${item.getCodeName()}')}ServiceBase extends
<#list item.getAllPSAppDEMethods() as singleAppMethod>
<#if singleAppMethod.getPSDEServiceAPIMethod?? && singleAppMethod.getPSDEServiceAPIMethod()??>
<#assign singleServiceApi = singleAppMethod.getPSDEServiceAPIMethod()/>
</#if>
<#if singleAppMethod.getPSDEAction()??>
<#assign appdeAction = singleAppMethod.getPSDEAction() />
</#if>
<#if singleAppMethod.render??>
${singleAppMethod.render.code}
......@@ -515,7 +518,7 @@ export default class ${srfclassname('${item.getCodeName()}')}ServiceBase extends
*/
public async ${singleAppMethod.getCodeName()}(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
<#if singleAppMethod.getPSDEAction()??>
<#assign appdeAction = singleAppMethod.getPSDEAction() />
<#-- <#assign appdeAction = singleAppMethod.getPSDEAction() /> -->
<#-- 检查行为是否可以执行 start -->
<#-- @author zpc -->
<#-- @update 2020.7.13 16:00 -->
......@@ -559,7 +562,7 @@ export default class ${srfclassname('${item.getCodeName()}')}ServiceBase extends
<#-- @update 2020.7.13 16:00 -->
<#-- 0:无测试行为 1:有测试行为 3:公开测试行为-->
<#if singleAppMethod.getPSDEAction()??>
<#assign appdeAction = singleAppMethod.getPSDEAction() />
<#-- <#assign appdeAction = singleAppMethod.getPSDEAction() /> -->
<#if appdeAction?? && appdeAction.getTestActionMode?? && appdeAction.getTestActionMode()?? && (appdeAction.getTestActionMode() =="1" || appdeAction.getTestActionMode() =="3")>
// ${appdeAction.getTestActionMode()}
</#if>
......@@ -594,7 +597,7 @@ export default class ${srfclassname('${item.getCodeName()}')}ServiceBase extends
<#-- @update 2020.7.13 17:00 -->
<#-- 0:无测试行为 1:有测试行为 3:公开测试行为-->
<#if singleAppMethod.getPSDEAction()??>
<#assign appdeAction = singleAppMethod.getPSDEAction() />
<#-- <#assign appdeAction = singleAppMethod.getPSDEAction() /> -->
<#if appdeAction?? && appdeAction.getTestActionMode?? && appdeAction.getTestActionMode()?? && (appdeAction.getTestActionMode() =="1" || appdeAction.getTestActionMode() =="3")>
/**
......@@ -602,11 +605,10 @@ export default class ${srfclassname('${item.getCodeName()}')}ServiceBase extends
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof ${srfclassname('${item.getCodeName()}')}ServiceBase
*/
<@getTestActionModifier appdeAction=appdeAction/> async test${srfclassname('${singleAppMethod.getCodeName()}')}(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
<@getTestActionModifier appdeAction=appdeAction/> async test${srfclassname('${singleAppMethod.getCodeName()}')}(context: any = {},data: any = {}): Promise<any> {
return true;
}
<#if singleAppMethod.getMethodType?? && singleAppMethod.getMethodType()?? && singleAppMethod.getMethodType() == "FETCH">
......@@ -617,11 +619,10 @@ export default class ${srfclassname('${item.getCodeName()}')}ServiceBase extends
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof ${srfclassname('${item.getCodeName()}')}ServiceBase
*/
<@getTestActionModifier appdeAction=appdeAction/> async test${srfclassname('search${dataSet.getCodeName()}')}(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
<@getTestActionModifier appdeAction=appdeAction/> async test${srfclassname('search${dataSet.getCodeName()}')}(context: any = {},data: any = {}): Promise<any> {
return true;
}
</#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册