From 950569e85576b34eda122aab2a9809fab982f17f Mon Sep 17 00:00:00 2001 From: huanghai <10402852@qq.com> Date: Wed, 2 Sep 2020 11:36:03 +0800 Subject: [PATCH] 'commit' --- .../BaseOrganizationService.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/dsBaseRpc/RpcService/BaseOrganization/BaseOrganizationService/BaseOrganizationService.go b/dsBaseRpc/RpcService/BaseOrganization/BaseOrganizationService/BaseOrganizationService.go index 28b66398..1cc14dc5 100644 --- a/dsBaseRpc/RpcService/BaseOrganization/BaseOrganizationService/BaseOrganizationService.go +++ b/dsBaseRpc/RpcService/BaseOrganization/BaseOrganizationService/BaseOrganizationService.go @@ -20,7 +20,6 @@ import ( "dsBaseRpc/Utils/PinYinUtil" "dsBaseRpc/Utils/SqlKit" "dsBaseRpc/models" - "encoding/json" "errors" "fmt" ) @@ -48,15 +47,7 @@ func (s *Rpc) GetBaseOrganization(ctx context.Context, in *BaseOrganizationProto LogUtil.Error(ErrorConst.SqlQueryError, "执行GetFsb时发生严重错误:"+err.Error()) return &reply, err } - //转换数组为JSON数据格式 - b, err := json.Marshal(fsbArray) - if err != nil { - reply.Success = false - reply.Message = Const.DataBaseActionError - LogUtil.Error(ErrorConst.SqlQueryError, "执行fsbArray转JSON时发生严重错误:"+err.Error()) - return &reply, err - } - list[0]["fsb"] = string(b) + list[0]["fsb"] = fsbArray } //将结果序列化 reply.Success = true