|
|
|
@ -402,9 +402,9 @@ func (s *Rpc) UpdateBaseOrganization(ctx context.Context, in *BaseOrganizationPr
|
|
|
|
|
|
|
|
|
|
if exist {
|
|
|
|
|
reply.Success = false
|
|
|
|
|
if BaseOrganizationDao.IsBuMen(in.OrgId){
|
|
|
|
|
if BaseOrganizationDao.IsBuMen(in.OrgId) {
|
|
|
|
|
reply.Message = "部门代码已存在,无法修改!"
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
reply.Message = "单位代码已存在,无法修改!"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -507,6 +507,9 @@ func (s *Rpc) UpdateBaseOrganization(ctx context.Context, in *BaseOrganizationPr
|
|
|
|
|
LogUtil.Error(ErrorConst.SqlUpdateError, "执行UpdateOrgManager时发生严重错误:"+err.Error())
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
//删除部门领导
|
|
|
|
|
BaseOrganizationManagerDao.DeleteOrgManagerByOrgIds([]string{in.OrgId})
|
|
|
|
|
}
|
|
|
|
|
//记录日志
|
|
|
|
|
ms, err := BaseOrganizationDao.GetByIds([]string{in.OrgId})
|
|
|
|
|