| | |
| | | package com.ycl.platform.service.impl; |
| | | |
| | | import com.ycl.platform.domain.entity.DefaultScore; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.platform.domain.entity.ContractScore; |
| | | import com.ycl.platform.mapper.DefaultScoreMapper; |
| | | import com.ycl.platform.service.IDefaultScoreService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | /** |
| | | * 合同打分Service业务层处理 |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | */ |
| | | @Service |
| | | public class DefaultScoreServiceImpl implements IDefaultScoreService |
| | | public class DefaultScoreServiceImpl extends ServiceImpl<DefaultScoreMapper, ContractScore> implements IDefaultScoreService |
| | | { |
| | | @Autowired |
| | | private DefaultScoreMapper defaultScoreMapper; |
| | | |
| | | /** |
| | | * 查询合同打分 |
| | | * |
| | | * |
| | | * @param id 合同打分主键 |
| | | * @return 合同打分 |
| | | */ |
| | | @Override |
| | | public DefaultScore selectDefaultScoreById(Long id) |
| | | public ContractScore selectDefaultScoreById(Long id) |
| | | { |
| | | return defaultScoreMapper.selectDefaultScoreById(id); |
| | | } |
| | | |
| | | /** |
| | | * 查询合同打分列表 |
| | | * |
| | | * @param defaultScore 合同打分 |
| | | * |
| | | * @param contractScore 合同打分 |
| | | * @return 合同打分 |
| | | */ |
| | | @Override |
| | | public List<DefaultScore> selectDefaultScoreList(DefaultScore defaultScore) |
| | | public List<ContractScore> selectDefaultScoreList(ContractScore contractScore) |
| | | { |
| | | return defaultScoreMapper.selectDefaultScoreList(defaultScore); |
| | | return defaultScoreMapper.selectDefaultScoreList(contractScore); |
| | | } |
| | | |
| | | /** |
| | | * 新增合同打分 |
| | | * |
| | | * @param defaultScore 合同打分 |
| | | * |
| | | * @param contractScore 合同打分 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int insertDefaultScore(DefaultScore defaultScore) |
| | | public int insertDefaultScore(ContractScore contractScore) |
| | | { |
| | | defaultScore.setCreateTime(DateUtils.getNowDate()); |
| | | return defaultScoreMapper.insertDefaultScore(defaultScore); |
| | | contractScore.setCreateTime(DateUtils.getNowDate()); |
| | | return defaultScoreMapper.insertDefaultScore(contractScore); |
| | | } |
| | | |
| | | /** |
| | | * 修改合同打分 |
| | | * |
| | | * @param defaultScore 合同打分 |
| | | * |
| | | * @param contractScore 合同打分 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int updateDefaultScore(DefaultScore defaultScore) |
| | | public int updateDefaultScore(ContractScore contractScore) |
| | | { |
| | | defaultScore.setUpdateTime(DateUtils.getNowDate()); |
| | | return defaultScoreMapper.updateDefaultScore(defaultScore); |
| | | contractScore.setUpdateTime(DateUtils.getNowDate()); |
| | | return defaultScoreMapper.updateDefaultScore(contractScore); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除合同打分 |
| | | * |
| | | * |
| | | * @param ids 需要删除的合同打分主键 |
| | | * @return 结果 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 删除合同打分信息 |
| | | * |
| | | * |
| | | * @param id 合同打分主键 |
| | | * @return 结果 |
| | | */ |