作者 tangxvhui

修复bug

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