|
|
|
@ -5,6 +5,7 @@ import (
|
|
|
|
|
"dsBaseRpc/Utils/DbUtil"
|
|
|
|
|
"dsBaseRpc/Utils/SqlKit"
|
|
|
|
|
"dsBaseRpc/models"
|
|
|
|
|
"errors"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
//操作数据库的变量
|
|
|
|
@ -23,6 +24,9 @@ func UpdateOrgManager(OrgId string, OrgManagerIds []string) error {
|
|
|
|
|
|
|
|
|
|
//部门所在的单位
|
|
|
|
|
list := SqlKit.QueryByIds([]string{OrgId}, "t_base_organization")
|
|
|
|
|
if list == nil || len(list) == 0 {
|
|
|
|
|
return errors.New("无法找到指定的OrgId")
|
|
|
|
|
}
|
|
|
|
|
BureauId := list[0]["bureau_id"].(string)
|
|
|
|
|
|
|
|
|
|
//事务声明
|
|
|
|
|