package com.ssm.manage.service.impl;

import com.ssm.core.service.impl.BaseServiceImpl;
import com.ssm.manage.dao.BaseDao;
import com.ssm.manage.entity.RechargeMoney;
import com.ssm.manage.entity.SmsFix;
import com.ssm.manage.mapper.SmsFixMapper;
import com.ssm.manage.service.RechargeMoneyService;
import com.ssm.manage.service.SmsFixService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class SmsFixServiceImpl extends BaseServiceImpl<SmsFix> implements SmsFixService {
    @Autowired
    private SmsFixMapper mapper;
    @Override
    public BaseDao<SmsFix> getDao() {
        return null;
    }

    @Override
    @Transactional
    public int saveSmsFix(SmsFix smsFix) {
        return mapper.insert(smsFix);
    }

    @Override
    @Transactional
    public List<SmsFix> selectBystoreId(SmsFix smsFix) {
        return mapper.selectBystoreId(smsFix);
    }

    @Override
    @Transactional
    public List<SmsFix> pageByPingTai(SmsFix smsFix) {
        return mapper.pageByPingTai(smsFix);
    }
    @Override
    @Transactional
    public int updateUnAudit(SmsFix smsFix) {
        return mapper.updateUnAudit(smsFix);
    }

    @Override
    @Transactional
    public void unAudit(SmsFix smsFix) {
        mapper.unAudit(smsFix);
    }

    @Override
    @Transactional
    public void updateBySmsFix(SmsFix smsFix) {
        mapper.updateBySmsFix(smsFix);
    }

    @Override
    public int deleteById(Long id) {
        return mapper.deleteById(id);
    }

    @Override
    public List<SmsFix> selectByTypeAndStoreId(SmsFix smsFix) {
        return mapper.selectByTypeAndStoreId(smsFix);
    }
}
