New file |
| | |
| | | package com.ycl.platform.service.impl; |
| | | |
| | | import com.ycl.platform.domain.entity.CheckPublish; |
| | | import com.ycl.platform.mapper.CheckPublishMapper; |
| | | import com.ycl.platform.service.ICheckPublishService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import utils.DateUtils; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 考核发布Service业务层处理 |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | */ |
| | | @Service |
| | | public class CheckPublishServiceImpl implements ICheckPublishService |
| | | { |
| | | @Autowired |
| | | private CheckPublishMapper checkPublishMapper; |
| | | |
| | | /** |
| | | * 查询考核发布 |
| | | * |
| | | * @param id 考核发布主键 |
| | | * @return 考核发布 |
| | | */ |
| | | @Override |
| | | public CheckPublish selectCheckPublishById(Long id) |
| | | { |
| | | return checkPublishMapper.selectCheckPublishById(id); |
| | | } |
| | | |
| | | /** |
| | | * 查询考核发布列表 |
| | | * |
| | | * @param checkPublish 考核发布 |
| | | * @return 考核发布 |
| | | */ |
| | | @Override |
| | | public List<CheckPublish> selectCheckPublishList(CheckPublish checkPublish) |
| | | { |
| | | return checkPublishMapper.selectCheckPublishList(checkPublish); |
| | | } |
| | | |
| | | /** |
| | | * 新增考核发布 |
| | | * |
| | | * @param checkPublish 考核发布 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int insertCheckPublish(CheckPublish checkPublish) |
| | | { |
| | | checkPublish.setCreateTime(DateUtils.getNowDate()); |
| | | return checkPublishMapper.insertCheckPublish(checkPublish); |
| | | } |
| | | |
| | | /** |
| | | * 修改考核发布 |
| | | * |
| | | * @param checkPublish 考核发布 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int updateCheckPublish(CheckPublish checkPublish) |
| | | { |
| | | checkPublish.setUpdateTime(DateUtils.getNowDate()); |
| | | return checkPublishMapper.updateCheckPublish(checkPublish); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除考核发布 |
| | | * |
| | | * @param ids 需要删除的考核发布主键 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteCheckPublishByIds(Long[] ids) |
| | | { |
| | | return checkPublishMapper.deleteCheckPublishByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * 删除考核发布信息 |
| | | * |
| | | * @param id 考核发布主键 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteCheckPublishById(Long id) |
| | | { |
| | | return checkPublishMapper.deleteCheckPublishById(id); |
| | | } |
| | | } |