Merge branch 'master' of 10.10.14.250:huanghai/dsMin

master
wubin 5 years ago
commit d574be1df7

@ -315,6 +315,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 = "-1"
}
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