package com.panzhihua.service_community.service.impl;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.panzhihua.common.model.vos.community.MostBeautifulVolunteerVO;
|
import com.panzhihua.service_community.dao.MostBeautifulVolunteerDao;
|
import com.panzhihua.service_community.entity.MostBeautifulVolunteer;
|
import com.panzhihua.service_community.service.MostBeautifulVolunteerService;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.stereotype.Service;
|
|
@Slf4j
|
@Service
|
public class MostBeautifulVolunteerServiceImpl extends ServiceImpl<MostBeautifulVolunteerDao,
|
MostBeautifulVolunteer> implements MostBeautifulVolunteerService
|
{
|
|
@Override
|
public MostBeautifulVolunteer queryById(String Id) {
|
return baseMapper.queryById(Id);
|
}
|
|
@Override
|
public IPage<MostBeautifulVolunteer> queryList(int pageNum,int pageSize, String name, String unmountType)
|
{
|
Page page = new Page<MostBeautifulVolunteer>(pageNum,pageSize);
|
return baseMapper.queryList(page, name,unmountType);
|
}
|
|
@Override
|
public int insertMostBeautifulVolunteer(MostBeautifulVolunteerVO mostBeautifulVolunteerVO) {
|
return baseMapper.insertMostBeautifulVolunteer(mostBeautifulVolunteerVO);
|
}
|
|
@Override
|
public int updateById(MostBeautifulVolunteerVO mostBeautifulVolunteerVO) {
|
return baseMapper.updateById(mostBeautifulVolunteerVO);
|
}
|
|
@Override
|
public int deleteById(String Id) {
|
return baseMapper.deleteById(Id);
|
}
|
}
|