master
huanghai 5 years ago
parent 5fd00fa3c0
commit 49acfa3441

@ -21,6 +21,7 @@ import (
"dsBaseRpc/Utils/PinYinUtil"
"dsBaseRpc/Utils/SqlKit"
"dsBaseRpc/models"
"errors"
)
type Rpc struct{} //服务对象
@ -601,6 +602,9 @@ func (s *Rpc) GetOrgManager(ctx context.Context, in *BaseOrganizationProto.Multi
func UpdateManager(bureauId string, bUse int32) error {
//使用通用方法获取单条记录
list := SqlKit.QueryByIds([]string{bureauId}, "t_base_organization")
if list == nil || len(list) == 0 {
return errors.New("无法找到指定的单位ID")
}
bureauName := list[0]["org_name"].(string)
orgType := int32(list[0]["org_type"].(float64))
//组织机构类型 1教育局 2学校 3部门 4院 5系 6专业 7教辅单位,8:大学区

Loading…
Cancel
Save