package com.hzs.activity.pick.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hzs.activity.pick.mapper.AcPickUpConfigMapper;
import com.hzs.activity.pick.service.IAcPickUpConfigService;
import com.hzs.common.domain.activity.base.AcPickUpConfig;
import org.springframework.stereotype.Service;

/**
 * 活动提货配置表 服务实现类
 *
 * @author hzs
 * @since 2023-04-21
 */
@Service
public class AcPickUpConfigServiceImpl extends ServiceImpl<AcPickUpConfigMapper, AcPickUpConfig> implements IAcPickUpConfigService {

    @Override
    public AcPickUpConfig queryAcPickUpConfig(AcPickUpConfig acPickUpConfig) {
        LambdaQueryWrapper<AcPickUpConfig> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(AcPickUpConfig::getPkBaseId, acPickUpConfig.getPkBaseId());
        return baseMapper.selectOne(queryWrapper);
    }
}
