feiyu02
2025-07-31 6688232eaa889eeb6c58d0d804b587699db55ec2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package cn.flightfeather.supervision.lightshare.service.impl
 
import cn.flightfeather.supervision.business.autooutput.AopOutput
import cn.flightfeather.supervision.domain.ds1.entity.DustDataResult
import cn.flightfeather.supervision.domain.ds1.repository.MonitorDataRep
import cn.flightfeather.supervision.lightshare.service.MonitorDataService
import cn.flightfeather.supervision.lightshare.vo.AreaVo
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional
 
/**
 *
 * @date 2025/3/19
 * @author feiyu02
 */
@Service
class MonitorDataServiceImpl(
    private val aopOutput: AopOutput,
    private val monitorDataRep: MonitorDataRep,
) : MonitorDataService {
 
    @Transactional
    override fun uploadDustDataResult(dataList: List<DustDataResult>): Boolean {
        dataList.forEach { aopOutput.toDbDataResult(it) }
        return true
    }
 
    override fun fetchDustDataResult(areaVo: AreaVo): List<DustDataResult?> {
        return monitorDataRep.fetchDustDataResult(areaVo)
    }
}