package com.gkhy.exam.institutionalaccess.service.serviceImpl;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.gkhy.exam.institutionalaccess.entity.ThStudent;
|
import com.gkhy.exam.institutionalaccess.mapper.ThStudentMapper;
|
import com.gkhy.exam.institutionalaccess.model.vo.ThStatisticStudentVO;
|
import com.gkhy.exam.institutionalaccess.service.ThStudentService;
|
import com.ruoyi.common.enums.coalmineEnums.DeleteStatusEnum;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
import java.util.Collections;
|
import java.util.List;
|
|
@Service("ThStudentService")
|
public class ThStudentServiceImpl extends ServiceImpl<ThStudentMapper, ThStudent> implements ThStudentService {
|
@Autowired
|
private ThStudentMapper studentMapper;
|
|
@Override
|
public ThStudent getByIdcard(String idcard) {
|
|
return studentMapper.selectOne(new LambdaQueryWrapper<ThStudent>().eq(ThStudent::getIdcard, idcard)
|
.eq(ThStudent::getDelFlag, DeleteStatusEnum.NO.getStatus()));
|
}
|
|
@Override
|
public List<ThStudent> getByIdcards(List<String> idcards) {
|
List<ThStudent> students = studentMapper.selectList(new LambdaQueryWrapper<ThStudent>().in(ThStudent::getIdcard, idcards).eq(ThStudent::getDelFlag, DeleteStatusEnum.NO.getStatus()));
|
return students;
|
}
|
|
@Override
|
public int updateByIdcard(List<ThStudent> updateStudentList) {
|
return studentMapper.updateByIdcard(updateStudentList);
|
}
|
|
|
}
|