package cn.pluss.platform.leshuaMakeMoney.impl;

import cn.pluss.platform.entity.LeshuaMakeMoney;
import cn.pluss.platform.leshuaMakeMoney.LeshuaMakeMoneyService;
import cn.pluss.platform.mapper.LeshuaMakeMoneyMapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Transactional
@Service("leshuaMakeMoneyService")
public class LeshuaMakeMoneyServiceImpl extends ServiceImpl<LeshuaMakeMoneyMapper, LeshuaMakeMoney> implements LeshuaMakeMoneyService {

    @Override
    public LeshuaMakeMoney queryLeshuaMakeMoney(LeshuaMakeMoney leshuaMakeMoney) {
        return baseMapper.selectOne(new QueryWrapper<>(leshuaMakeMoney));
    }

    @Override
    public void saveLeshuaMakeMoney(LeshuaMakeMoney leshuaMakeMoney) {
        baseMapper.insert(leshuaMakeMoney);
    }

    @Override
    public void updateLeshuaMakeMoney(LeshuaMakeMoney leshuaMakeMoney) {
        baseMapper.updateById(leshuaMakeMoney);
    }

    @Override
    public void deleteLeshuaMakeMoney(LeshuaMakeMoney leshuaMakeMoney) {
        baseMapper.deleteById(leshuaMakeMoney.getId());
    }

    @Override
    public List<LeshuaMakeMoney> queryLeshuaMakeMoneyPage(Map map) {
        return baseMapper.queryLeshuaMakeMoneyPage(map);
    }

    @Override
    public Integer queryLeshuaMakeMoneyPageCount(Map map) {
        return baseMapper.queryLeshuaMakeMoneyPageCount(map);
    }

}

