# TrendSourceSettingServiceImpl.java

    package cloud.wconnect.rateshop.service.rateshop.impl;

    import cloud.wconnect.rateshop.entity.rateshop.TrendSourceSetting;
    import cloud.wconnect.rateshop.mapper.rateshop.TrendSourceSettingMapper;
    import cloud.wconnect.rateshop.service.rateshop.ITrendSourceSettingService;
    import com.baomidou.dynamic.datasource.annotation.DS;
    import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
    import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
    import org.springframework.stereotype.Service;

    import java.util.List;

    /**
     * <p>
     * 需求趋势配置表 服务实现类
     * </p>
     *
     * @author lichen
     * @since 2024-04-25
     */
    @Service
    @DS("rate_shop")
    public class TrendSourceSettingServiceImpl extends ServiceImpl<TrendSourceSettingMapper, TrendSourceSetting> implements ITrendSourceSettingService {

        /**
         * 查询资产的市场趋势配置
         *
         * @param propertyId 资产ID
         * @return java.util.List<cloud.wconnect.rateshop.entity.rateshop.TrendSourceSetting>
         * @author lichen
         * @date 2024/4/25
         */
        @Override
        public List<TrendSourceSetting> listByPropertyId(Integer propertyId) {
            return list(new LambdaQueryWrapper<TrendSourceSetting>().eq(TrendSourceSetting::getPropertyId, propertyId));
        }

        /**
         * 查询配置指定需求趋势地址ID的资产
         *
         * @param trendLocationId 需求趋势地址ID
         * @return java.util.List<cloud.wconnect.rateshop.entity.rateshop.TrendSourceSetting>
         * @author lichen
         * @date 2025/4/2
         */
        @Override
        public List<TrendSourceSetting> listByTrendLocationId(Integer trendLocationId) {
            return list(new LambdaQueryWrapper<TrendSourceSetting>().eq(TrendSourceSetting::getLocationId, trendLocationId));
        }
    }