提交 84270ec4 编写于 作者: tony001's avatar tony001

调整数据服务

上级 d34e3f5f
...@@ -85,6 +85,8 @@ import ${srfclassname('${singleLogic.getCodeName()}')}Logic from '@/service/${sr ...@@ -85,6 +85,8 @@ import ${srfclassname('${singleLogic.getCodeName()}')}Logic from '@/service/${sr
} }
return {status:200,data:res}; return {status:200,data:res};
</#if> </#if>
<#else>
<@service_block item=item singleAppMethod=singleAppMethod />
</#if> </#if>
<#-- 预定义类型为索引实体end --> <#-- 预定义类型为索引实体end -->
</#if> </#if>
...@@ -104,7 +106,8 @@ import ${srfclassname('${singleLogic.getCodeName()}')}Logic from '@/service/${sr ...@@ -104,7 +106,8 @@ import ${srfclassname('${singleLogic.getCodeName()}')}Logic from '@/service/${sr
<#-- 定义service_block start --> <#-- 定义service_block start -->
<#macro service_block item singleAppMethod afterActionStr = ""> <#macro service_block item singleAppMethod afterActionStr = "">
<#if item.getPSAppDERSPathCount() gt 0 && singleServiceApi??> <#if item.getPSAppDERSPathCount() gt 0 && singleAppMethod.getPSDEServiceAPIMethod?? && singleAppMethod.getPSDEServiceAPIMethod()??>
<#assign singleServiceApi = singleAppMethod.getPSDEServiceAPIMethod()/>
<#list 1..item.getPSAppDERSPathCount() as count> <#list 1..item.getPSAppDERSPathCount() as count>
<#assign path = ''/> <#assign path = ''/>
<#assign condition = ''/> <#assign condition = ''/>
...@@ -216,7 +219,8 @@ import ${srfclassname('${singleLogic.getCodeName()}')}Logic from '@/service/${sr ...@@ -216,7 +219,8 @@ import ${srfclassname('${singleLogic.getCodeName()}')}Logic from '@/service/${sr
</#if> </#if>
</#list> </#list>
</#if> </#if>
<#if item.isMajor()> <#if item.isMajor() && singleAppMethod.getPSDEServiceAPIMethod?? && singleAppMethod.getPSDEServiceAPIMethod()??>
<#assign singleServiceApi = singleAppMethod.getPSDEServiceAPIMethod()/>
<#-- 方法类型为SELECT --> <#-- 方法类型为SELECT -->
<#if singleAppMethod.getMethodType() == "SELECT"> <#if singleAppMethod.getMethodType() == "SELECT">
<#-- if(context.${item.getCodeName()?lower_case}){ --> <#-- if(context.${item.getCodeName()?lower_case}){ -->
...@@ -329,7 +333,7 @@ import ${srfclassname('${singleLogic.getCodeName()}')}Logic from '@/service/${sr ...@@ -329,7 +333,7 @@ import ${srfclassname('${singleLogic.getCodeName()}')}Logic from '@/service/${sr
</#if> </#if>
</#if> </#if>
<#-- 嵌套成员 --> <#-- 嵌套成员 -->
<#if item.isMajor() == false && !singleServiceApi??> <#if item.isMajor() == false && !(singleAppMethod.getPSDEServiceAPIMethod?? && singleAppMethod.getPSDEServiceAPIMethod()??)>
<#if singleAppMethod.getMethodType() == "SELECT"> <#if singleAppMethod.getMethodType() == "SELECT">
// ${singleAppMethod.getCodeName()} ---SELECT // ${singleAppMethod.getCodeName()} ---SELECT
<#-- 方法类型为FETCH --> <#-- 方法类型为FETCH -->
...@@ -577,9 +581,6 @@ export default class ${srfclassname('${item.getCodeName()}')}ServiceBase extends ...@@ -577,9 +581,6 @@ export default class ${srfclassname('${item.getCodeName()}')}ServiceBase extends
<#-- 实体接口调用start --> <#-- 实体接口调用start -->
<#if item.getAllPSAppDEMethods?? && item.getAllPSAppDEMethods()??> <#if item.getAllPSAppDEMethods?? && item.getAllPSAppDEMethods()??>
<#list item.getAllPSAppDEMethods() as singleAppMethod> <#list item.getAllPSAppDEMethods() as singleAppMethod>
<#if singleAppMethod.getPSDEServiceAPIMethod?? && singleAppMethod.getPSDEServiceAPIMethod()??>
<#assign singleServiceApi = singleAppMethod.getPSDEServiceAPIMethod()/>
</#if>
<#if singleAppMethod.render??> <#if singleAppMethod.render??>
${singleAppMethod.render.code} ${singleAppMethod.render.code}
<#else> <#else>
...@@ -631,11 +632,7 @@ export default class ${srfclassname('${item.getCodeName()}')}ServiceBase extends ...@@ -631,11 +632,7 @@ export default class ${srfclassname('${item.getCodeName()}')}ServiceBase extends
<#-- 无实体行为,有接口走接口,无接口走本地供数 start --> <#-- 无实体行为,有接口走接口,无接口走本地供数 start -->
<#-- @author zpc --> <#-- @author zpc -->
<#-- @update 2020.7.22 17:00 --> <#-- @update 2020.7.22 17:00 -->
<#if singleAppMethod.getPSDEServiceAPIMethod?? && singleAppMethod.getPSDEServiceAPIMethod()??>
<@service_block item=item singleAppMethod=singleAppMethod />
<#else>
<@local_supply item=item singleAppMethod=singleAppMethod /> <@local_supply item=item singleAppMethod=singleAppMethod />
</#if>
<#-- 无实体行为,有接口走接口,无接口走本地供数 end --> <#-- 无实体行为,有接口走接口,无接口走本地供数 end -->
</#if> </#if>
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册