| | |
| | | */ |
| | | public List<WorkRegistrationVO> getByIdCard(String idCard, byte isCm){ |
| | | List<WorkRegistration> workRegistrations = baseMapper.selectList(new LambdaQueryWrapper<WorkRegistration>() |
| | | .eq(WorkRegistration::getDelFlag, 0) |
| | | .eq(WorkRegistration::getDelFlag, (byte)0) |
| | | .eq(WorkRegistration::getIdCard, idCard) |
| | | .eq(idCard != null,WorkRegistration::getIsCm,isCm)); |
| | | .eq(WorkRegistration::getIsCm,isCm)); |
| | | List<WorkRegistrationVO> list = workRegistrations.stream().map(workRegistration -> { |
| | | WorkRegistrationVO workRegistrationVO = new WorkRegistrationVO(); |
| | | BeanUtils.copyProperties(workRegistration, workRegistrationVO); |