作者 tangxvhui

调整查询条件

@@ -877,7 +877,7 @@ func (rs *EvaluationProjectService) generateEvaluationItemUsed(transactionContex @@ -877,7 +877,7 @@ func (rs *EvaluationProjectService) generateEvaluationItemUsed(transactionContex
877 "transactionContext": transactionContext, 877 "transactionContext": transactionContext,
878 }) 878 })
879 var err error 879 var err error
880 - cnt, _, err := itemUsedRepo.Find(map[string]interface{}{"projectId": project.Id}) 880 + cnt, _, err := itemUsedRepo.Find(map[string]interface{}{"evaluationProjectId": project.Id, "limit": 1})
881 if err != nil { 881 if err != nil {
882 return application.ThrowError(application.TRANSACTION_ERROR, "检查评估选项"+err.Error()) 882 return application.ThrowError(application.TRANSACTION_ERROR, "检查评估选项"+err.Error())
883 } 883 }