| | |
| | | package com.gkhy.system.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import java.util.List; |
| | | import com.rchuing.common.utils.DateUtils; |
| | | import com.gkhy.common.utils.DateUtils; |
| | | import com.gkhy.common.utils.SecurityUtils; |
| | | import com.gkhy.system.domain.Evaluation; |
| | | import com.gkhy.system.mapper.EvaluationMapper; |
| | | import com.gkhy.system.service.IEvaluationService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.gkhy.system.mapper.EvaluationMapper; |
| | | import com.gkhy.system.domain.Evaluation; |
| | | import com.gkhy.system.service.IEvaluationService; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 考评管理Service业务层处理 |
| | |
| | | */ |
| | | @Override |
| | | public int insertEvaluation(Evaluation evaluation) { |
| | | evaluation.setCreateBy(SecurityUtils.getUsername()); |
| | | evaluation.setCreateTime(DateUtils.getNowDate()); |
| | | return evaluationMapper.insertEvaluation(evaluation); |
| | | } |
| | |
| | | */ |
| | | @Override |
| | | public int updateEvaluation(Evaluation evaluation) { |
| | | evaluation.setUpdateBy(SecurityUtils.getUsername()); |
| | | evaluation.setUpdateTime(DateUtils.getNowDate()); |
| | | return evaluationMapper.updateEvaluation(evaluation); |
| | | } |
| | |
| | | */ |
| | | @Override |
| | | public int deleteEvaluationByIds(Long[] ids) { |
| | | //todo 校验被引用不可删除 |
| | | return evaluationMapper.deleteEvaluationByIds(ids); |
| | | } |
| | | |