|
|
|
@ -53,7 +53,7 @@ func (s *Rpc) AddBaseOrganization(ctx context.Context, in *BaseOrganizationProto
|
|
|
|
|
//1、检查非空
|
|
|
|
|
if len(in.OrgCode) == 0 {
|
|
|
|
|
reply.Success = false
|
|
|
|
|
reply.Message = "编码代码为空,不能创建!"
|
|
|
|
|
reply.Message = "代码为空,不能创建!"
|
|
|
|
|
return &reply, nil
|
|
|
|
|
}
|
|
|
|
|
//2、检查AreaCode是否存在,不存在需要提示
|
|
|
|
@ -85,7 +85,7 @@ func (s *Rpc) AddBaseOrganization(ctx context.Context, in *BaseOrganizationProto
|
|
|
|
|
}
|
|
|
|
|
if exist {
|
|
|
|
|
reply.Success = false
|
|
|
|
|
reply.Message = "编码已存在,无法创建!"
|
|
|
|
|
reply.Message = "代码已存在,无法创建!"
|
|
|
|
|
return &reply, err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -373,7 +373,7 @@ func (s *Rpc) UpdateBaseOrganization(ctx context.Context, in *BaseOrganizationPr
|
|
|
|
|
|
|
|
|
|
if exist {
|
|
|
|
|
reply.Success = false
|
|
|
|
|
reply.Message = "编码已存在,无法修改!"
|
|
|
|
|
reply.Message = "代码已存在,无法修改!"
|
|
|
|
|
return &reply, err
|
|
|
|
|
}
|
|
|
|
|
//2、检查机构名称是否存在,否则在导入人员时,不知道向哪个单位下进行导入
|
|
|
|
|