提交 8fbf550a 编写于 作者: KK's avatar KK

实体服务调整

上级 757ab1a8
...@@ -84,6 +84,8 @@ import { ${srfclassname('${singleLogic.getCodeName()}')}Logic } from './${srffil ...@@ -84,6 +84,8 @@ import { ${srfclassname('${singleLogic.getCodeName()}')}Logic } from './${srffil
} }
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,6 +106,7 @@ import { ${srfclassname('${singleLogic.getCodeName()}')}Logic } from './${srffil ...@@ -104,6 +106,7 @@ import { ${srfclassname('${singleLogic.getCodeName()}')}Logic } from './${srffil
<#-- 定义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 && singleServiceApi??>
<#assign singleServiceApi = singleAppMethod.getPSDEServiceAPIMethod()/>
<#list 1..item.getPSAppDERSPathCount() as count> <#list 1..item.getPSAppDERSPathCount() as count>
<#assign path = ''/> <#assign path = ''/>
<#assign condition = ''/> <#assign condition = ''/>
...@@ -215,7 +218,8 @@ import { ${srfclassname('${singleLogic.getCodeName()}')}Logic } from './${srffil ...@@ -215,7 +218,8 @@ import { ${srfclassname('${singleLogic.getCodeName()}')}Logic } from './${srffil
</#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}){ -->
...@@ -328,7 +332,7 @@ import { ${srfclassname('${singleLogic.getCodeName()}')}Logic } from './${srffil ...@@ -328,7 +332,7 @@ import { ${srfclassname('${singleLogic.getCodeName()}')}Logic } from './${srffil
</#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 -->
...@@ -575,9 +579,6 @@ export class ${srfclassname('${item.getCodeName()}')}ServiceBase extends EntityS ...@@ -575,9 +579,6 @@ export class ${srfclassname('${item.getCodeName()}')}ServiceBase extends EntityS
<#-- 实体接口调用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>
...@@ -629,11 +630,7 @@ export class ${srfclassname('${item.getCodeName()}')}ServiceBase extends EntityS ...@@ -629,11 +630,7 @@ export class ${srfclassname('${item.getCodeName()}')}ServiceBase extends EntityS
<#-- 无实体行为,有接口走接口,无接口走本地供数 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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册