package com.ssm.manage.dao.impl;

import com.ssm.core.impl.BaseDaoImpl;
import com.ssm.manage.dao.SsmPromotionUnitDao;
import com.ssm.manage.entity.PromotionList;
import com.ssm.manage.entity.PromotionUnit;
import com.ssm.manage.mapper.PromotionUnitMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.entity.Example;

import java.math.BigInteger;
import java.util.List;

@Component
public class SsmPromotionUnitDaoImpl  extends BaseDaoImpl<PromotionUnit> implements SsmPromotionUnitDao {

    @Autowired
    private PromotionUnitMapper mapper;

    @Override
    public PromotionUnitMapper getMapper() {
        return mapper;
    }

    @Override
    public int update(PromotionUnit promotionUnit) {
        return mapper.update(promotionUnit);
    }

    @Override
    public int empty(PromotionUnit promotionUnit) {
        return mapper.empty(promotionUnit);
    }

    @Override
    public List<Long> selectallId(PromotionUnit promotionUnit) {
        return mapper.selectallId(promotionUnit);
    }


}
