Commit dc63cd7d authored by 高滢's avatar 高滢

导出方案

parent 74bf0437
package com.ruoyi.domain.vo;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
@Data
public class RecaordUseCasesReportVO {
@Excel(name = "标准章节号")
private String serialNumber;
@Excel(name = "标准要求")
private String requirements;
@Excel(name = "用例编号")
private String customizedID;
@Excel(name = "用例描述")
private String description;
}
......@@ -12,6 +12,7 @@ import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.domain.ReviewStandard;
import com.ruoyi.domain.TTestPlanRecord;
import com.ruoyi.domain.vo.ItemsByUseCaseVO;
import com.ruoyi.domain.vo.RecaordUseCasesReportVO;
import com.ruoyi.domain.vo.RecaordUseCasesVO;
import com.ruoyi.mapper.TTestPlanRecordMapper;
import com.ruoyi.service.TTestPlanRecordService;
......@@ -152,10 +153,15 @@ public class TestPlanRecordController extends BaseController{
} catch (IOException e) {
throw new RuntimeException(e);
}
List<RecaordUseCasesVO> list = new ArrayList<>();
List<RecaordUseCasesReportVO> list = new ArrayList<>();
listUseCase.forEach(itemS->{
itemS.getUseCases().forEach(data->{
list.add(data);
RecaordUseCasesReportVO recaordUseCasesReportVO = new RecaordUseCasesReportVO();
recaordUseCasesReportVO.setDescription(itemS.getSerialNumber());
recaordUseCasesReportVO.setRequirements(itemS.getRequirements());
recaordUseCasesReportVO.setCustomizedID(data.getCustomizedID());
recaordUseCasesReportVO.setDescription(data.getDescription());
list.add(recaordUseCasesReportVO);
});
});
result.put(isPage ? "车型实验" : "sheet1名字", list );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment