|
|
|
@ -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:大学区
|
|
|
|
|