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

测试行为

上级 2d8d5c8c
......@@ -72,21 +72,21 @@ public class ${item.codeName}ExService extends ${item.codeName}ServiceImpl {
<#if (deaction.getActionType()=='USERCUSTOM')>
@Override
@Transactional
public ${item.getCodeName()} test${srfmethodname(deaction.getCodeName())?cap_first}(${item.getCodeName()} et) {
public boolean test${srfmethodname(deaction.getCodeName())?cap_first}(${item.getCodeName()} et) {
return super.test${srfmethodname(deaction.getCodeName())?cap_first}(et);
}
<#elseif deaction.getActionType()=='DELOGIC'>
@Override
@Transactional
public ${item.getCodeName()} test${srfmethodname(deaction.getCodeName())?cap_first}(${item.getCodeName()} et) {
public boolean test${srfmethodname(deaction.getCodeName())?cap_first}(${item.getCodeName()} et) {
return super.test${srfmethodname(deaction.getCodeName())?cap_first}(et);
}
<#elseif deaction.getCodeName()?lower_case == 'get'>
@Override
@Transactional
public ${item.getCodeName()} testGet(${srfjavatype(keyfield.stdDataType)} key) {
public boolean testGet(${srfjavatype(keyfield.stdDataType)} key) {
return super.testGet(key);
}
......@@ -102,8 +102,8 @@ public class ${item.codeName}ExService extends ${item.codeName}ServiceImpl {
}
@Override
public void testCreateBatch(List<${item.getCodeName()}> list) {
super.testCreateBatch(list);
public boolean testCreateBatch(List<${item.getCodeName()}> list) {
return super.testCreateBatch(list);
}
<#elseif deaction.getCodeName()?lower_case == "update">
......@@ -114,8 +114,8 @@ public class ${item.codeName}ExService extends ${item.codeName}ServiceImpl {
}
@Override
public void testUpdateBatch(List<${item.getCodeName()}> list) {
super.testUpdateBatch(list);
public boolean testUpdateBatch(List<${item.getCodeName()}> list) {
return super.testUpdateBatch(list);
}
<#elseif deaction.getCodeName()?lower_case == "save">
......@@ -139,8 +139,8 @@ public class ${item.codeName}ExService extends ${item.codeName}ServiceImpl {
}
@Override
public void testSaveBatch(List<${item.getCodeName()}> list) {
super.testSaveBatch(list);
public boolean testSaveBatch(List<${item.getCodeName()}> list) {
return super.testSaveBatch(list);
}
<#elseif deaction.getCodeName()?lower_case == "remove">
......@@ -151,13 +151,13 @@ public class ${item.codeName}ExService extends ${item.codeName}ServiceImpl {
}
@Override
public void testRemoveBatch(Collection<${srfjavatype(keyfield.stdDataType)}> idList) {
super.testRemoveBatch(idList);
public boolean testRemoveBatch(Collection<${srfjavatype(keyfield.stdDataType)}> idList) {
return super.testRemoveBatch(idList);
}
<#elseif deaction.getCodeName()?lower_case == "getdraft">
@Override
public ${item.getCodeName()} testGetDraft(${item.getCodeName()} et) {
public boolean testGetDraft(${item.getCodeName()} et) {
return super.testGetDraft(et);
}
......@@ -170,7 +170,7 @@ public class ${item.codeName}ExService extends ${item.codeName}ServiceImpl {
<#else>
@Override
@Transactional
public ${item.getCodeName()} test${srfmethodname(deaction.getCodeName())?cap_first}(${item.getCodeName()} et) {
public boolean test${srfmethodname(deaction.getCodeName())?cap_first}(${item.getCodeName()} et) {
return super.test${srfmethodname(deaction.getCodeName())?cap_first}(et);
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册