- Implement 5 core API endpoints (create task, get progress, get results, update decision, export Excel) - Add FulltextScreeningController with Zod validation (652 lines) - Implement ExcelExporter service with 4-sheet report generation (352 lines) - Register routes under /api/v1/asl/fulltext-screening - Create 31 REST Client test cases - Add automated integration test script - Fix PDF extraction fallback mechanism in LLM12FieldsService - Update API design documentation to v3.0 - Update development plan to v1.2 - Create Day 5 development record - Clean up temporary test files
31 lines
673 B
TypeScript
31 lines
673 B
TypeScript
import XLSX from 'xlsx';
|
|
|
|
const filePath = 'D:\\MyCursor\\AIclinicalresearch\\docs\\03-业务模块\\ASL-AI智能文献\\05-测试文档\\03-测试数据\\screening\\Test Cases.xlsx';
|
|
|
|
const workbook = XLSX.readFile(filePath);
|
|
const sheetName = workbook.SheetNames[0];
|
|
const worksheet = workbook.Sheets[sheetName];
|
|
const data = XLSX.utils.sheet_to_json(worksheet);
|
|
|
|
console.log(`总行数: ${data.length}`);
|
|
console.log('\n前3行数据:');
|
|
data.slice(0, 3).forEach((row: any, i) => {
|
|
console.log(`\n第${i+1}行:`);
|
|
console.log(JSON.stringify(row, null, 2));
|
|
});
|
|
|
|
console.log('\n所有列名:');
|
|
if (data.length > 0) {
|
|
console.log(Object.keys(data[0]));
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|