feiyu02
2025-06-02 718aabb1db80e7efbb2e866ca3ae74bcd264e20a
src/main/kotlin/com/flightfeather/uav/biz/sourcetrace/model/PollutedSource.kt
@@ -4,6 +4,7 @@
import com.flightfeather.uav.common.utils.MapUtil
import com.flightfeather.uav.domain.entity.SceneInfo
import com.flightfeather.uav.domain.repository.SceneInfoRep
import org.springframework.web.context.ContextLoader
/**
 * 污染来源
@@ -21,6 +22,12 @@
    // 溯源企业
    var sceneList:List<SceneInfo?>? = null
    fun searchScenes(pollutedArea: PollutedArea, factor: FactorFilter.SelectedFactor) {
        ContextLoader.getCurrentWebApplicationContext()?.getBean(SceneInfoRep::class.java)?.run {
            searchScenes(pollutedArea, this, factor)
        }
    }
    /**
     * 查找系统内部溯源范围内的污染企业
     */