feiyu02
2026-01-21 fe031e01cc1737c2f05a133fde7c36c7a2a7b4b4
src/main/kotlin/cn/flightfeather/supervision/lightshare/service/Impl/ConfigServiceImpl.kt
@@ -1,9 +1,7 @@
package cn.flightfeather.supervision.lightshare.service.Impl
import cn.flightfeather.supervision.common.exception.BizException
import cn.flightfeather.supervision.domain.entity.CommitmentTemplate
import cn.flightfeather.supervision.domain.entity.SceneType
import cn.flightfeather.supervision.domain.entity.UserConfig
import cn.flightfeather.supervision.domain.entity.*
import cn.flightfeather.supervision.domain.mapper.*
import cn.flightfeather.supervision.domain.repository.UserConfigRep
import cn.flightfeather.supervision.lightshare.service.ConfigService
@@ -18,7 +16,8 @@
    private val baseInfoMapper: BaseInfoMapper,
    private val commitmentTemplateMapper: CommitmentTemplateMapper,
    private val sceneTypeMapper: SceneTypeMapper,
    private val userConfigRep: UserConfigRep
    private val userConfigRep: UserConfigRep,
    private val userSettingRecordMapper: UserSettingRecordMapper,
) : ConfigService {
    override fun getSceneRange(userId: String): List<Pair<String?, String?>>? {
@@ -67,4 +66,12 @@
    override fun getUserConfig(userId: String): UserConfig? {
        return userConfigRep.getUserConfigBySubType(userId)
    }
    override fun getUserSetting(userId: String): UserSetting? {
        return userConfigRep.getUserSetting(userId)
    }
    override fun getUserSettingRecord(userId: String): UserSettingRecord? {
        return userSettingRecordMapper.selectByPrimaryKey(userId)
    }
}