# AirportSourceSettingServiceImpl.java

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

    import cloud.wconnect.rateshop.entity.rateshop.AirportSourceSetting;
    import cloud.wconnect.rateshop.mapper.rateshop.AirportSourceSettingMapper;
    import cloud.wconnect.rateshop.service.rateshop.IAirportSourceSettingService;
    import com.baomidou.dynamic.datasource.annotation.DS;
    import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
    import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
    import org.springframework.stereotype.Service;

    import java.util.List;

    /**
     * <p>
     * 资产的机场源配置表 服务实现类
     * </p>
     *
     * @author zc
     * @since 2024-03-23
     */
    @Service
    @DS("rate_shop")
    public class AirportSourceSettingServiceImpl extends ServiceImpl<AirportSourceSettingMapper, AirportSourceSetting> implements IAirportSourceSettingService {

        /**
         * 根据资产 id 获取机场源配置数据
         *
         * @param propertyId 资产 id
         * @return AirportSourceSetting 集合
         * @author zc
         * @date 2024/3/25
         */
        @Override
        public List<AirportSourceSetting> listByPropertyId(int propertyId) {
            return list(new QueryWrapper<AirportSourceSetting>().lambda()
                    .eq(AirportSourceSetting::getPropertyId, propertyId));
        }
    }