huangzhen
2023-09-15 ea09629d8857e0afa329858f72cf1c93e25b813c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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);
    }
}