正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -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 | } |
-
请 注册 或 登录 后发表评论