package com.ycl.platform.service.impl;
|
|
import com.ycl.platform.domain.entity.DefaultResult;
|
import com.ycl.platform.mapper.DefaultResultMapper;
|
import com.ycl.platform.service.IDefaultResultService;
|
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 DefaultResultServiceImpl implements IDefaultResultService
|
{
|
@Autowired
|
private DefaultResultMapper defaultResultMapper;
|
|
/**
|
* 查询合同考核结果
|
*
|
* @param id 合同考核结果主键
|
* @return 合同考核结果
|
*/
|
@Override
|
public DefaultResult selectDefaultResultById(Long id)
|
{
|
return defaultResultMapper.selectDefaultResultById(id);
|
}
|
|
/**
|
* 查询合同考核结果列表
|
*
|
* @param defaultResult 合同考核结果
|
* @return 合同考核结果
|
*/
|
@Override
|
public List<DefaultResult> selectDefaultResultList(DefaultResult defaultResult)
|
{
|
return defaultResultMapper.selectDefaultResultList(defaultResult);
|
}
|
|
/**
|
* 新增合同考核结果
|
*
|
* @param defaultResult 合同考核结果
|
* @return 结果
|
*/
|
@Override
|
public int insertDefaultResult(DefaultResult defaultResult)
|
{
|
return defaultResultMapper.insertDefaultResult(defaultResult);
|
}
|
|
/**
|
* 修改合同考核结果
|
*
|
* @param defaultResult 合同考核结果
|
* @return 结果
|
*/
|
@Override
|
public int updateDefaultResult(DefaultResult defaultResult)
|
{
|
defaultResult.setUpdateTime(DateUtils.getNowDate());
|
return defaultResultMapper.updateDefaultResult(defaultResult);
|
}
|
|
/**
|
* 批量删除合同考核结果
|
*
|
* @param ids 需要删除的合同考核结果主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteDefaultResultByIds(Long[] ids)
|
{
|
return defaultResultMapper.deleteDefaultResultByIds(ids);
|
}
|
|
/**
|
* 删除合同考核结果信息
|
*
|
* @param id 合同考核结果主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteDefaultResultById(Long id)
|
{
|
return defaultResultMapper.deleteDefaultResultById(id);
|
}
|
}
|