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

test行为

上级 ed27de4f
...@@ -2210,49 +2210,49 @@ ${deaction.getRender().code} ...@@ -2210,49 +2210,49 @@ ${deaction.getRender().code}
<#comment>输出测试行为</#comment> <#comment>输出测试行为</#comment>
<#macro outputTestAction deaction actionParam> <#macro outputTestAction deaction actionParam>
<#if deaction.getTestActionMode?? && deaction.getTestActionMode()?? > <#if deaction.getTestActionMode?? && deaction.getTestActionMode()?? && (deaction.getTestActionMode() ==1 || deaction.getTestActionMode() ==3 ) >
<#if (deaction.getActionType()=='USERCUSTOM')> <#if (deaction.getActionType()=='USERCUSTOM')>
test${srfmethodname(deaction.getCodeName())?cap_first}(et); test${srfmethodname(deaction.getCodeName())?cap_first}(et);
<#elseif deaction.getActionType()=='DELOGIC'> <#elseif deaction.getActionType()=='DELOGIC'>
test${srfmethodname(deaction.getCodeName())?cap_first}(et) test${srfmethodname(deaction.getCodeName())?cap_first}(et)
<#elseif deaction.getCodeName()?lower_case == 'get'> <#elseif deaction.getCodeName()?lower_case == 'get'>
testGet(key); testGet(key);
<#elseif deaction.getCodeName()?lower_case == "createbatch"> <#elseif deaction.getCodeName()?lower_case == "createbatch">
<#elseif deaction.getCodeName()?lower_case == "updatebatch"> <#elseif deaction.getCodeName()?lower_case == "updatebatch">
<#elseif deaction.getCodeName()?lower_case == "removebatch"> <#elseif deaction.getCodeName()?lower_case == "removebatch">
<#elseif deaction.getCodeName()?lower_case == "savebatch"> <#elseif deaction.getCodeName()?lower_case == "savebatch">
<#elseif deaction.getCodeName()?lower_case == "create"> <#elseif deaction.getCodeName()?lower_case == "create">
<#if actionParam=='createBatch'> <#if actionParam=='createBatch'>
testCreateBatch(list); testCreateBatch(list);
<#else> <#else>
testCreate(et) testCreate(et);
</#if> </#if>
<#elseif deaction.getCodeName()?lower_case == "update"> <#elseif deaction.getCodeName()?lower_case == "update">
<#if actionParam=='updateBatch'> <#if actionParam=='updateBatch'>
testUpdateBatch(list); testUpdateBatch(list);
<#else> <#else>
testUpdate(et) testUpdate(et);
</#if> </#if>
<#elseif deaction.getCodeName()?lower_case == "save"> <#elseif deaction.getCodeName()?lower_case == "save">
<#if actionParam=='savebatch'> <#if actionParam=='savebatch'>
testSaveBatch(list); testSaveBatch(list);
<#elseif actionParam=='saveOrUpdate'> <#elseif actionParam=='saveOrUpdate'>
testSaveOrUpdate(et); testSaveOrUpdate(et);
<#else> <#else>
testSave(et); testSave(et);
</#if> </#if>
<#elseif deaction.getCodeName()?lower_case == "remove"> <#elseif deaction.getCodeName()?lower_case == "remove">
<#if actionParam=='removeBatch'> <#if actionParam=='removeBatch'>
testRemoveBatch(idList); testRemoveBatch(idList);
<#else> <#else>
testRemove(key); testRemove(key);
</#if> </#if>
<#elseif deaction.getCodeName()?lower_case == "getdraft"> <#elseif deaction.getCodeName()?lower_case == "getdraft">
testGetDraft(et); testGetDraft(et);
<#elseif deaction.getCodeName()?lower_case == "checkkey"> <#elseif deaction.getCodeName()?lower_case == "checkkey">
testCheckKey(et); testCheckKey(et);
<#else> <#else>
test${srfmethodname(deaction.getCodeName())?cap_first}(et); test${srfmethodname(deaction.getCodeName())?cap_first}(et);
</#if> </#if>
</#if> </#if>
</#macro> </#macro>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册