| | |
| | | package cn.flightfeather.supervision.business.autooutput |
| | | |
| | | import cn.flightfeather.supervision.business.Info |
| | | import cn.flightfeather.supervision.business.autooutput.datasource.AopDataSource |
| | | import cn.flightfeather.supervision.domain.ds1.entity.DustDataResult |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Evaluation |
| | |
| | | } |
| | | |
| | | /** |
| | | * 将评分记录更新至数据库 |
| | | */ |
| | | fun updateDbEvaluation(evaluationScene: AopDataSource.EvaluationScene, p: Pair<Evaluation, List<Itemevaluation>>) { |
| | | evaluationMapper.updateByPrimaryKey(p.first) |
| | | p.second.forEach { il -> itemevaluationMapper.updateByPrimaryKey(il) } |
| | | } |
| | | |
| | | /** |
| | | * 将监测数据统计结果入库 |
| | | */ |
| | | fun toDbDataResult(dustDataResult: DustDataResult) { |