作者 tangxvhui

修复bug

... ... @@ -528,7 +528,7 @@ func (srv *SummaryEvaluationService) EditEvaluationSelf(param *command.EditEvalu
"id": param.SummaryEvaluationId,
})
if err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取评估"+err.Error())
}
if evaluationData.Types != domain.EvaluationSelf {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "没有操作权限")
... ...
... ... @@ -145,6 +145,6 @@ func (d *SummaryEvaluationDao) UpdateBeginTime(ids []int, beginTime time.Time) e
beginTime, pg.In(ids),
}
tx := d.transactionContext.PgTx
_, err := tx.ExecOne(sqlStr, condition...)
_, err := tx.Exec(sqlStr, condition...)
return err
}
... ...