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

test行为

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