# IwcWeightConfigServiceImpl.java

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

    import cloud.wconnect.rateshop.entity.rateshop.IwcWeightConfig;
    import cloud.wconnect.rateshop.mapper.rateshop.IwcWeightConfigMapper;
    import cloud.wconnect.rateshop.service.rateshop.IIwcWeightConfigService;
    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>
     * IWC的权重配置表 服务实现类
     * </p>
     *
     * @author lichen
     * @since 2025-04-02
     */
    @Service
    @DS("rate_shop")
    public class IwcWeightConfigServiceImpl extends ServiceImpl<IwcWeightConfigMapper, IwcWeightConfig> implements IIwcWeightConfigService {

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

    }