# RevenueCustomersRuleServiceImpl.java

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

    import cloud.wconnect.rateshop.entity.revenue.RevenueCustomersRule;
    import cloud.wconnect.rateshop.mapper.revenue.RevenueCustomersRuleMapper;
    import cloud.wconnect.rateshop.service.revenue.IRevenueCustomersRuleService;
    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>
     * 客源收入规则（包含：Group，Contract） 服务实现类
     * </p>
     *
     * @author yyt
     * @since 2024-04-09
     */
    @Service
    @DS("rate_shop")
    public class RevenueCustomersRuleServiceImpl extends ServiceImpl<RevenueCustomersRuleMapper, RevenueCustomersRule> implements IRevenueCustomersRuleService {

        /**
         * 获取规则配置
         *
         * @param propertyId 资产 id
         * @return 规则配置
         * @author yyt
         * @date 2024/4/9
         **/
        @Override
        public List<RevenueCustomersRule> list(Integer propertyId) {
            return list(new QueryWrapper<RevenueCustomersRule>().lambda().eq(RevenueCustomersRule::getPropertyId, propertyId));
        }

    }