|
|
|
@ -189,7 +189,7 @@ func (s *Rpc) DeleteBaseStudent(ctx context.Context, in *BaseStudentProto.Delete
|
|
|
|
|
return &reply, err
|
|
|
|
|
}
|
|
|
|
|
//记录日志
|
|
|
|
|
ms, err := BaseStudentDao.FindModelsByIds(in.Ids)
|
|
|
|
|
ms, err := BaseStudentDao.GetByIds(in.Ids)
|
|
|
|
|
if err != nil {
|
|
|
|
|
LogUtil.Error(ErrorConst.SqlUpdateError, "执行FindModelsByIds时发生严重错误:"+err.Error())
|
|
|
|
|
reply.Success = false
|
|
|
|
@ -209,7 +209,7 @@ func (s *Rpc) DeleteBaseStudent(ctx context.Context, in *BaseStudentProto.Delete
|
|
|
|
|
//删除对应的家长
|
|
|
|
|
SqlKit.DeleteIds("t_base_parent", parentIds)
|
|
|
|
|
//记录家长表的数据变更
|
|
|
|
|
ms2, err := BaseParentDao.FindModelsByIds(parentIds)
|
|
|
|
|
ms2, err := BaseParentDao.GetByIds(parentIds)
|
|
|
|
|
if err != nil {
|
|
|
|
|
LogUtil.Error(ErrorConst.SqlUpdateError, "执行FindModelsByIds时发生严重错误:"+err.Error())
|
|
|
|
|
reply.Success = false
|
|
|
|
@ -315,7 +315,7 @@ func (s *Rpc) UpdateBaseStudent(ctx context.Context, in *BaseStudentProto.ModelA
|
|
|
|
|
return &reply, err
|
|
|
|
|
}
|
|
|
|
|
//记录日志
|
|
|
|
|
ms, err := BaseStudentDao.FindModelsByIds([]string{in.PersonId})
|
|
|
|
|
ms, err := BaseStudentDao.GetByIds([]string{in.PersonId})
|
|
|
|
|
if err != nil {
|
|
|
|
|
LogUtil.Error(ErrorConst.SqlUpdateError, "执行FindModelsByIds时发生严重错误:"+err.Error())
|
|
|
|
|
reply.Success = false
|
|
|
|
|