|
@@ -6,12 +6,17 @@ import java.util.List;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
+import com.qmth.boot.core.collection.PageResult;
|
|
import com.qmth.boot.core.exception.StatusException;
|
|
import com.qmth.boot.core.exception.StatusException;
|
|
import com.qmth.boot.tools.excel.ExcelReader;
|
|
import com.qmth.boot.tools.excel.ExcelReader;
|
|
import com.qmth.boot.tools.excel.enums.ExcelType;
|
|
import com.qmth.boot.tools.excel.enums.ExcelType;
|
|
import com.qmth.boot.tools.excel.model.DataMap;
|
|
import com.qmth.boot.tools.excel.model.DataMap;
|
|
|
|
+import com.qmth.exam.reserve.bean.PagerReq;
|
|
|
|
+import com.qmth.exam.reserve.bean.studentimport.StudentImportTaskVO;
|
|
import com.qmth.exam.reserve.dao.StudentImportTaskDao;
|
|
import com.qmth.exam.reserve.dao.StudentImportTaskDao;
|
|
import com.qmth.exam.reserve.entity.ApplyTaskEntity;
|
|
import com.qmth.exam.reserve.entity.ApplyTaskEntity;
|
|
import com.qmth.exam.reserve.entity.StudentImportTaskEntity;
|
|
import com.qmth.exam.reserve.entity.StudentImportTaskEntity;
|
|
@@ -20,6 +25,7 @@ import com.qmth.exam.reserve.enums.ImportType;
|
|
import com.qmth.exam.reserve.service.ApplyTaskService;
|
|
import com.qmth.exam.reserve.service.ApplyTaskService;
|
|
import com.qmth.exam.reserve.service.StudentImportAsyncService;
|
|
import com.qmth.exam.reserve.service.StudentImportAsyncService;
|
|
import com.qmth.exam.reserve.service.StudentImportTaskService;
|
|
import com.qmth.exam.reserve.service.StudentImportTaskService;
|
|
|
|
+import com.qmth.exam.reserve.util.PageUtil;
|
|
|
|
|
|
@Service
|
|
@Service
|
|
public class StudentImportTaskServiceImpl extends ServiceImpl<StudentImportTaskDao, StudentImportTaskEntity>
|
|
public class StudentImportTaskServiceImpl extends ServiceImpl<StudentImportTaskDao, StudentImportTaskEntity>
|
|
@@ -60,4 +66,11 @@ public class StudentImportTaskServiceImpl extends ServiceImpl<StudentImportTaskD
|
|
asyncImportService.asyncImportStudent(studentTask, task.getOrgId(), lineList);
|
|
asyncImportService.asyncImportStudent(studentTask, task.getOrgId(), lineList);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public PageResult<StudentImportTaskVO> page(PagerReq req) {
|
|
|
|
+ IPage<StudentImportTaskVO> page = this.baseMapper
|
|
|
|
+ .page(new Page<StudentImportTaskVO>(req.getPageNumber(), req.getPageSize()), req);
|
|
|
|
+ return PageUtil.of(page);
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|