package com.ycl.platform.service.impl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.ycl.platform.domain.entity.CheckResult;
|
import com.ycl.platform.mapper.CheckResultMapper;
|
import com.ycl.platform.service.ICheckResultService;
|
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 CheckResultServiceImpl extends ServiceImpl<CheckResultMapper, CheckResult> implements ICheckResultService
|
{
|
@Autowired
|
private CheckResultMapper checkResultMapper;
|
|
/**
|
* 查询考核结果
|
*
|
* @param id 考核结果主键
|
* @return 考核结果
|
*/
|
@Override
|
public CheckResult selectCheckResultById(Long id)
|
{
|
return checkResultMapper.selectCheckResultById(id);
|
}
|
|
/**
|
* 查询考核结果列表
|
*
|
* @param checkResult 考核结果
|
* @return 考核结果
|
*/
|
@Override
|
public List<CheckResult> selectCheckResultList(CheckResult checkResult)
|
{
|
return checkResultMapper.selectCheckResultList(checkResult);
|
}
|
|
/**
|
* 新增考核结果
|
*
|
* @param checkResult 考核结果
|
* @return 结果
|
*/
|
@Override
|
public int insertCheckResult(CheckResult checkResult)
|
{
|
return checkResultMapper.insertCheckResult(checkResult);
|
}
|
|
/**
|
* 修改考核结果
|
*
|
* @param checkResult 考核结果
|
* @return 结果
|
*/
|
@Override
|
public int updateCheckResult(CheckResult checkResult)
|
{
|
checkResult.setUpdateTime(DateUtils.getNowDate());
|
return checkResultMapper.updateCheckResult(checkResult);
|
}
|
|
/**
|
* 批量删除考核结果
|
*
|
* @param ids 需要删除的考核结果主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteCheckResultByIds(Long[] ids)
|
{
|
return checkResultMapper.deleteCheckResultByIds(ids);
|
}
|
|
/**
|
* 删除考核结果信息
|
*
|
* @param id 考核结果主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteCheckResultById(Long id)
|
{
|
return checkResultMapper.deleteCheckResultById(id);
|
}
|
}
|