| | |
| | | private val evaluationRep: EvaluationRep, |
| | | private val taskRep: TaskRep, |
| | | private val aopTaskCtrl: AopTaskCtrl, |
| | | private val searchService: SearchService, |
| | | private val dbMapper: DbMapper, |
| | | @Value("\${filePath}") private val filePath: String, |
| | | private val reportTaskCtrl: ReportTaskCtrl, |
| | |
| | | //1. 查找历史记录,查看评估是否已存在 |
| | | // areaVo.scensetypeid ?: throw ResponseErrorException("查询时必须选择一个场景类型") |
| | | // val task = taskRep.findOneTask(areaVo) ?: throw ResponseErrorException("查询时必须选择一个场景类型") |
| | | return evaluationRep.findAutoScore(areaVo) |
| | | val evaList = evaluationRep.findAutoScore(areaVo) |
| | | evaList?.forEach { |
| | | it?.subTaskId?.let { id-> |
| | | it.itemEvaluations = evaluationRep.findItemEvaluation(id) |
| | | } |
| | | } |
| | | return evaList |
| | | } |
| | | |
| | | override fun downloadAutoEvaluation(areaVo: AreaVo, forceUpdate: Boolean, response: HttpServletResponse): Boolean { |