| | |
| | | import com.gkhy.exam.coalmine.service.baseService.EmonExamRecordService; |
| | | import com.ruoyi.common.enums.coalmineEnums.DeleteStatusEnum; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<EmonExamRecord> listValid() { |
| | | public List<EmonExamRecord> listValid(List<Long> childrenIds) { |
| | | LambdaQueryWrapper<EmonExamRecord> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(EmonExamRecord::getDelFlag, DeleteStatusEnum.NO.getStatus()) |
| | | .orderByDesc(EmonExamRecord::getReportTime); |
| | | if (!CollectionUtils.isEmpty(childrenIds)){ |
| | | wrapper.in(EmonExamRecord::getDistrictId,childrenIds); |
| | | } |
| | | return emonExamRecordMapper.selectList(wrapper); |
| | | } |
| | | } |