| | |
| | | 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.dtos.community.sanshuo.ComSanshuoEventDTO; |
| | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import static java.util.Objects.isNull; |
| | | |
| | |
| | | |
| | | /** |
| | | * 添加或修改事件类型 |
| | | * |
| | | * @param comSanshuoEvent |
| | | * @return 处理结果 |
| | | * */ |
| | | */ |
| | | @Override |
| | | public R addOrUpdate(ComSanshuoEvent comSanshuoEvent) { |
| | | if (isNull(comSanshuoEvent.getName())){ |
| | |
| | | |
| | | /** |
| | | * 后台获取事件类型列表 |
| | | * |
| | | * @param comSanshuoEventDTO |
| | | * @return 处理结果 |
| | | * */ |
| | | */ |
| | | @Override |
| | | public R backStageList(ComSanshuoEventDTO comSanshuoEventDTO) { |
| | | return R.ok(this.baseMapper.pageEvent(new Page(comSanshuoEventDTO.getPage(),comSanshuoEventDTO.getSize()),comSanshuoEventDTO)) ; |