package com.gkhy.exam.coalmine.service.baseService.impl;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.gkhy.exam.coalmine.mapper.CmStaffResumeMapper;
|
import com.gkhy.exam.coalmine.entity.CmStaffResume;
|
import com.gkhy.exam.coalmine.service.baseService.CmStaffResumeService;
|
import com.ruoyi.common.enums.coalmineEnums.DeleteStatusEnum;
|
import org.springframework.stereotype.Service;
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
|
import javax.annotation.Resource;
|
import java.util.List;
|
|
/**
|
* @author hz
|
* @since 2023-09-14 10:37:03
|
*/
|
@Service("cmStaffResumeServiceImpl")
|
public class CmStaffResumeServiceImpl extends ServiceImpl<CmStaffResumeMapper, CmStaffResume> implements CmStaffResumeService {
|
|
@Resource
|
private CmStaffResumeMapper cmStaffResumeMapper;
|
|
@Override
|
public CmStaffResume getValidById(Long id) {
|
LambdaQueryWrapper<CmStaffResume> wrapper = new LambdaQueryWrapper<>();
|
wrapper.eq(CmStaffResume::getId,id)
|
.eq(CmStaffResume::getDelFlag, DeleteStatusEnum.NO.getStatus());
|
return cmStaffResumeMapper.selectOne(wrapper);
|
}
|
|
@Override
|
public List<CmStaffResume> listValid(Long id) {
|
LambdaQueryWrapper<CmStaffResume> wrapper = new LambdaQueryWrapper<>();
|
wrapper.eq(CmStaffResume::getDelFlag, DeleteStatusEnum.NO.getStatus())
|
.eq(CmStaffResume::getStaffId,id);
|
return cmStaffResumeMapper.selectList(wrapper);
|
}
|
}
|