package com.njcn.gather.plan.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.njcn.gather.plan.mapper.AdPlanTestConfigMapper;
import com.njcn.gather.plan.pojo.po.AdPlanTestConfig;
import com.njcn.gather.plan.service.IAdPlanTestConfigService;
import org.springframework.stereotype.Service;

/**
 * @author stary
 * @date 2025-08-25
 */
@Service
public class AdPlanTestConfigServiceImpl extends ServiceImpl<AdPlanTestConfigMapper, AdPlanTestConfig>
        implements IAdPlanTestConfigService {

    @Override
    public AdPlanTestConfig getByPlanId(String planId) {
        return this.lambdaQuery().eq(AdPlanTestConfig::getPlanId, planId).last("LIMIT 1").one();
    }
}




