master
huanghai 5 years ago
parent 1319d58f7b
commit 648e6d91cc

@ -3,7 +3,6 @@ package DataExchange
import (
"bytes"
"crypto/md5"
"dsBaseRpc/RpcService/BaseOrganization/BaseOrganizationDao"
"dsBaseRpc/Utils/CommonUtil"
"dsBaseRpc/Utils/ConfigUtil"
"dsBaseRpc/Utils/DbUtil"
@ -317,8 +316,8 @@ func PostToServer(t tableStruct, list []map[string]interface{}) bool {
ds.OrgId = list[k]["bureau_id"].(string)
//如果是市县管理员的话那么这里的bureau_id就是区域码而数据交换平台只认t_base_organization表中的org_id,需要换算一下
if len(ds.OrgId)==6{
ds.OrgId=BaseOrganizationDao.GetMasterJiaoYuJu(ds.OrgId).OrgId
if len(ds.OrgId) == 6 {
ds.OrgId = "-1"
}
dsMap = append(dsMap, ds)
}

Loading…
Cancel
Save