huangzhen
2023-09-25 1614615fc9319b8626eb028598b894311992c033
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
package com.gkhy.exam.noncoalmine.service.impl;
 
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gkhy.exam.noncoalmine.entity.NcExaminees;
import com.gkhy.exam.noncoalmine.mapper.NcExamineesMapper;
import com.gkhy.exam.noncoalmine.service.NcExamineesService;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * (NcExaminees)表服务实现类
 *
 * @author makejava
 * @since 2023-09-18 10:01:22
 */
@Service("ncExamineesService")
public class NcExamineesServiceImpl extends ServiceImpl<NcExamineesMapper, NcExaminees> implements NcExamineesService {
 
    @Override
    public List<NcExaminees> getByStaffid(Long stuffId) {
        List<NcExaminees> examineesList = baseMapper.selectList(new LambdaQueryWrapper<NcExaminees>().eq(NcExaminees::getDelFlag, (byte) 0).eq(NcExaminees::getStaffId, stuffId));
        return examineesList;
    }
 
    @Override
    public List<NcExaminees> getByIdCard(String idCard) {
        List<NcExaminees> examineesList = baseMapper.selectList(new LambdaQueryWrapper<NcExaminees>().eq(NcExaminees::getDelFlag, (byte) 0).eq(NcExaminees::getCardNum, idCard));
        return examineesList;
    }
}