提交 49cd61d2 编写于 作者: Neuromancer255's avatar Neuromancer255

部件服务get方法response类型调整

上级 818c3266
<#ibiztemplate>
TARGET=PSAPPDATAENTITY
</#ibiztemplate>
import { Http,Util } from '@/ibiz-core/utils';
import { Http,Util,HttpResponse } from '@/ibiz-core/utils';
<#-- import {EntityService} from '@/ibiz-core/service/entity-service-base'; -->
import { EntityService } from '@/ibiz-core';
<#if item.getAllPSAppDELogics()??>
......@@ -364,12 +364,12 @@ import { ${srfclassname('${singleLogic.getCodeName()}')}Logic } from './${srffil
if(context.srfsessionkey && !Object.is(this.tempStorage.getItem(context.srfsessionkey+'_${srfpluralize(item.codeName)?lower_case}'),'undefined')){
let result:any = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_${srfpluralize(item.codeName)?lower_case}') as any);
if(result){
return {"status":200,"data":result};
return new HttpResponse(200,{});
}else{
return {"status":200,"data":[]};
return new HttpResponse(200,{});
}
}else{
return {"status":200,"data":[]};
return new HttpResponse(200,{});
}
</#list>
</#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册