作者 tangxvhui

添加限制条件

@@ -833,7 +833,7 @@ func (rs *EvaluationProjectService) generateEvaluationItemUsed(transactionContex @@ -833,7 +833,7 @@ func (rs *EvaluationProjectService) generateEvaluationItemUsed(transactionContex
833 "transactionContext": transactionContext, 833 "transactionContext": transactionContext,
834 }) 834 })
835 var err error 835 var err error
836 - cnt, _, err := itemUsedRepo.Find(map[string]interface{}{"evaluationProjectId": project.Id}) 836 + cnt, _, err := itemUsedRepo.Find(map[string]interface{}{"evaluationProjectId": project.Id, "limit": 1})
837 if err != nil { 837 if err != nil {
838 return application.ThrowError(application.TRANSACTION_ERROR, "检查评估选项"+err.Error()) 838 return application.ThrowError(application.TRANSACTION_ERROR, "检查评估选项"+err.Error())
839 } 839 }