|
|
|
@ -30,7 +30,7 @@ func (s *Rpc) GetBaseOrganization(ctx context.Context, in *BaseOrganizationProto
|
|
|
|
|
//rpc响应
|
|
|
|
|
var reply BaseOrganizationProto.Reply
|
|
|
|
|
//使用通用方法获取单条记录
|
|
|
|
|
list := SqlKit.QueryMapArrayByIds([]string{in.OrgId}, "t_base_organization")
|
|
|
|
|
list := SqlKit.QueryByIds([]string{in.OrgId}, "t_base_organization")
|
|
|
|
|
|
|
|
|
|
//将结果序列化
|
|
|
|
|
reply.Success = true
|
|
|
|
@ -373,7 +373,7 @@ func (s *Rpc) UpdateBaseOrganization(ctx context.Context, in *BaseOrganizationPr
|
|
|
|
|
//普通学校
|
|
|
|
|
model.MainSchoolType = 1
|
|
|
|
|
//查看它有没有父校?
|
|
|
|
|
list := SqlKit.QueryMapArrayByIds([]string{in.OrgId}, "t_base_organization")
|
|
|
|
|
list := SqlKit.QueryByIds([]string{in.OrgId}, "t_base_organization")
|
|
|
|
|
mainSchoolId := list[0]["main_school_id"]
|
|
|
|
|
|
|
|
|
|
if mainSchoolId != "" {
|
|
|
|
@ -596,7 +596,7 @@ func (s *Rpc) GetOrgManager(ctx context.Context, in *BaseOrganizationProto.Multi
|
|
|
|
|
*/
|
|
|
|
|
func UpdateManager(bureauId string, bUse int32) error {
|
|
|
|
|
//使用通用方法获取单条记录
|
|
|
|
|
list := SqlKit.QueryMapArrayByIds([]string{bureauId}, "t_base_organization")
|
|
|
|
|
list := SqlKit.QueryByIds([]string{bureauId}, "t_base_organization")
|
|
|
|
|
bureauName := list[0]["org_name"].(string)
|
|
|
|
|
orgType := int32(list[0]["org_type"].(float64))
|
|
|
|
|
//组织机构类型 1:教育局 2:学校 3:部门 4:院 5:系 6:专业 7:教辅单位,8:大学区
|
|
|
|
|