教育训练处考试制证系统后端
huangzhen
2023-09-26 28231163c688c379a688ce6878a1126ee218aa52
exam-system/src/main/java/com/gkhy/exam/coalmine/service/baseService/impl/EmonExamRecordServiceImpl.java
@@ -7,6 +7,7 @@
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;
@@ -31,10 +32,13 @@
    }
    @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);
    }
}