master
huanghai 5 years ago
parent 49acfa3441
commit 13f5345da5

@ -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)
//事务声明

Loading…
Cancel
Save