master
huanghai 5 years ago
parent 0c32ea327a
commit 2c4ccf7ba5

@ -3,6 +3,7 @@ package DataExchange
import (
"bytes"
"crypto/md5"
"dsBaseRpc/RpcService/BaseOrganization/BaseOrganizationDao"
"dsBaseRpc/Utils/CommonUtil"
"dsBaseRpc/Utils/ConfigUtil"
"dsBaseRpc/Utils/DbUtil"
@ -315,6 +316,10 @@ func PostToServer(t tableStruct, list []map[string]interface{}) bool {
delete(list[k], "del_flag")
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
}
dsMap = append(dsMap, ds)
}
ps.Datas = dsMap

@ -11,5 +11,5 @@ type TBaseTeacherOrg struct {
DistrictCode string `xorm:"not null default '''' comment('所在区行政区划码') CHAR(6)"`
MainSchoolId string `xorm:"not null default '''' comment('主校ID') CHAR(36)"`
SortId int32 `xorm:"not null comment('排序号在获取信息时如果排序号大于9999前台不显示') INT(11)"`
IsMain int32 `xorm:"not null default 1 comment('是不是主单位、主部门') INT(255)"`
IsMain int32 `xorm:"not null default 1 comment('是不是主单位、主部门,待删除') INT(255)"`
}

Loading…
Cancel
Save