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

版本检查

上级 ae276416
...@@ -57,16 +57,6 @@ public interface I${item.codeName}Service extends IService<${item.codeName}>{ ...@@ -57,16 +57,6 @@ public interface I${item.codeName}Service extends IService<${item.codeName}>{
List<${de.codeName}> get${deCodeNameCamel}ByIds(List<String> ids) ; List<${de.codeName}> get${deCodeNameCamel}ByIds(List<String> ids) ;
List<${de.codeName}> get${deCodeNameCamel}ByEntities(List<${de.codeName}> entities) ; List<${de.codeName}> get${deCodeNameCamel}ByEntities(List<${de.codeName}> entities) ;
</#if> </#if>
<#comment>暂时只在sql发布test行为</#comment>
<#if item.getAllPSDEActions()??>
<#list item.getAllPSDEActions() as deaction>
<#if deaction.isEnableBackend()>
<@outputTestActionDetail deaction />
</#if>
</#list>
</#if>
} }
<#comment>NoSQL存储-MongoDB</#comment> <#comment>NoSQL存储-MongoDB</#comment>
<#elseif de.getStorageMode()==2> <#elseif de.getStorageMode()==2>
...@@ -155,6 +145,7 @@ public interface I${item.codeName}Service{ ...@@ -155,6 +145,7 @@ public interface I${item.codeName}Service{
<#else> <#else>
${item.codeName} ${srfmethodname(deaction.getCodeName())}(${item.codeName} et) ; ${item.codeName} ${srfmethodname(deaction.getCodeName())}(${item.codeName} et) ;
</#if> </#if>
<@outputTestActionDetail deaction />
</#if> </#if>
</#list> </#list>
</#if> </#if>
......
...@@ -664,9 +664,19 @@ public class ${itemCodeName}Resource { ...@@ -664,9 +664,19 @@ public class ${itemCodeName}Resource {
<#comment>数据库版本检查注解</#comment> <#comment>数据库版本检查注解</#comment>
<#macro VersionCheckAnnotation> <#macro VersionCheckAnnotation>
<#if de.getPSDEFieldByPDT('UPDATEDATE',true)??> <#if item.getPSDEServiceAPIFields()??>
<#assign updatedateField=srfcaseformat(de.getPSDEFieldByPDT('UPDATEDATE',true).codeName,'l_u2lC')> <#list item.getPSDEServiceAPIFields() as apifield>
<#if apifield.getPSDEField?? && apifield.getPSDEField()??>
<#assign defield=apifield.getPSDEField()>
<#if defield.getPredefinedType?? && defield.getPredefinedType()??>
<#if defield.getPredefinedType()=='UPDATEDATE'>
<#assign updatedateField=srfcaseformat(defield.codeName,'l_u2lC')>
@VersionCheck(entity = "${deCodeNameLC}" , versionfield = "${updatedateField}") @VersionCheck(entity = "${deCodeNameLC}" , versionfield = "${updatedateField}")
<#break>
</#if>
</#if>
</#if>
</#list>
</#if> </#if>
</#macro> </#macro>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册