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.common.model.vos.community.VolunteerActivityVO;
|
import com.panzhihua.service_community.dao.MostBeautifulVolunteerDao;
|
import com.panzhihua.service_community.dao.VolunteerActivityDao;
|
import com.panzhihua.service_community.entity.MostBeautifulVolunteer;
|
import com.panzhihua.service_community.entity.VolunteerActivity;
|
import com.panzhihua.service_community.service.MostBeautifulVolunteerService;
|
import com.panzhihua.service_community.service.VolunteerActivityService;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.stereotype.Service;
|
|
import java.util.Date;
|
|
@Slf4j
|
@Service
|
public class VolunteerActivityServiceImpl extends ServiceImpl<VolunteerActivityDao,
|
VolunteerActivity> implements VolunteerActivityService
|
{
|
|
@Override
|
public VolunteerActivity queryById(String Id) {
|
return baseMapper.queryById(Id);
|
}
|
|
@Override
|
public IPage<VolunteerActivity> queryList(int pageNum,int pageSize,
|
String name,
|
String acState,
|
String acType,
|
Date actityBeginTime,
|
Date actityEndTime)
|
{
|
Page page = new Page<VolunteerActivity>(pageNum,pageSize);
|
return baseMapper.queryList(page, name, acState, acType, actityBeginTime, actityEndTime);
|
}
|
|
@Override
|
public int insertVolunteer(VolunteerActivityVO mostBeautifulVolunteerVO) {
|
return baseMapper.insertVolunteer(mostBeautifulVolunteerVO);
|
}
|
|
@Override
|
public int updateById(VolunteerActivityVO mostBeautifulVolunteerVO) {
|
return baseMapper.updateById(mostBeautifulVolunteerVO);
|
}
|
|
@Override
|
public int deleteById(String Id) {
|
return baseMapper.deleteById(Id);
|
}
|
}
|