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

补充实体行为(处理逻辑)批处理

上级 8f2c3c99
...@@ -125,6 +125,7 @@ public interface I${item.codeName}Service { ...@@ -125,6 +125,7 @@ public interface I${item.codeName}Service {
boolean ${srfmethodname(deaction.getCodeName())}Batch(List<${item.codeName}> etList); boolean ${srfmethodname(deaction.getCodeName())}Batch(List<${item.codeName}> etList);
<#elseif deaction.getActionType()=='DELOGIC'> <#elseif deaction.getActionType()=='DELOGIC'>
${item.codeName} ${srfmethodname(deaction.getCodeName())}(${item.codeName} et); ${item.codeName} ${srfmethodname(deaction.getCodeName())}(${item.codeName} et);
boolean ${srfmethodname(deaction.getCodeName())}Batch(List<${item.codeName}> etList);
<#elseif deaction.codeName?lower_case == 'get'> <#elseif deaction.codeName?lower_case == 'get'>
${item.codeName} get(${srfr7javatype(keyfield.stdDataType)} key); ${item.codeName} get(${srfr7javatype(keyfield.stdDataType)} key);
<#elseif deaction.codeName?lower_case == "create"> <#elseif deaction.codeName?lower_case == "create">
......
...@@ -243,6 +243,9 @@ public class ${item.getCodeName()}ServiceImpl extends ServiceImpl<${de.getCodeNa ...@@ -243,6 +243,9 @@ public class ${item.getCodeName()}ServiceImpl extends ServiceImpl<${de.getCodeNa
return et ; return et ;
} }
<#comment>实体逻辑批处理</#comment>
<@customBatchAction deaction/>
<#elseif deaction.getCodeName()?lower_case == 'get'> <#elseif deaction.getCodeName()?lower_case == 'get'>
@Override @Override
<@transactionalAnno deaction/> <@transactionalAnno deaction/>
...@@ -1178,6 +1181,9 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser ...@@ -1178,6 +1181,9 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
return et ; return et ;
} }
<#comment>实体逻辑批处理</#comment>
<@customBatchAction deaction/>
<#elseif deaction.getCodeName()?lower_case == 'get'> <#elseif deaction.getCodeName()?lower_case == 'get'>
@Override @Override
<@transactionalAnno deaction/> <@transactionalAnno deaction/>
...@@ -1683,6 +1689,9 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser ...@@ -1683,6 +1689,9 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
return et ; return et ;
} }
<#comment>实体逻辑批处理</#comment>
<@customBatchAction deaction/>
<#elseif deaction.getCodeName()?lower_case == 'get'> <#elseif deaction.getCodeName()?lower_case == 'get'>
<#assign getMethodParam = keyfield.getCodeName()?lower_case> <#assign getMethodParam = keyfield.getCodeName()?lower_case>
@Override @Override
...@@ -2250,6 +2259,9 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser ...@@ -2250,6 +2259,9 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
return et ; return et ;
} }
<#comment>实体逻辑批处理</#comment>
<@customBatchAction deaction/>
<#elseif deaction.getCodeName()?lower_case == 'get'> <#elseif deaction.getCodeName()?lower_case == 'get'>
@Override @Override
public ${item.getCodeName()} get(${srfr7javatype(keyfield.stdDataType)} key) { public ${item.getCodeName()} get(${srfr7javatype(keyfield.stdDataType)} key) {
......
...@@ -279,7 +279,7 @@ public class ${itemCodeName}Resource { ...@@ -279,7 +279,7 @@ public class ${itemCodeName}Resource {
</#if> </#if>
} }
<#comment>自定义行为批处理</#comment> <#comment>自定义行为批处理</#comment>
<#if (deaction.getActionType()=='USERCUSTOM')> <#if (deaction.getActionType()=='USERCUSTOM' || deaction.getActionType()=='DELOGIC')>
<@customBatchAction deaction/> <@customBatchAction deaction/>
</#if> </#if>
...@@ -645,7 +645,7 @@ public class ${itemCodeName}Resource { ...@@ -645,7 +645,7 @@ public class ${itemCodeName}Resource {
</#if> </#if>
} }
<#comment>自定义行为批处理</#comment> <#comment>自定义行为批处理</#comment>
<#if (deaction.getActionType()=='USERCUSTOM')> <#if (deaction.getActionType()=='USERCUSTOM' || deaction.getActionType()=='DELOGIC')>
<@customBatchActionRS deaction/> <@customBatchActionRS deaction/>
</#if> </#if>
</#if> </#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册