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

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
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.core.constant.ActivityFieldConstants;
import com.hzs.common.domain.activity.base.AcPickUpConfig;
import org.springframework.stereotype.Service;

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

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