feat(测试用例): excel拆分单元格
This commit is contained in:
parent
317d88a18b
commit
7e9a68d3f1
|
@ -33,4 +33,7 @@ public class FunctionalCaseExportRequest extends BaseFunctionalCaseBatchDTO impl
|
||||||
@Schema(description = "文件id")
|
@Schema(description = "文件id")
|
||||||
private String fileId;
|
private String fileId;
|
||||||
|
|
||||||
|
@Schema(description = "单元格拆分")
|
||||||
|
private Boolean isMerge = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -463,7 +463,7 @@ public class FunctionalCaseFileService {
|
||||||
//构建其他字段
|
//构建其他字段
|
||||||
buildExportOtherField(functionalCase, data, caseCommentMap, executeCommentMap, reviewCommentMap, request);
|
buildExportOtherField(functionalCase, data, caseCommentMap, executeCommentMap, reviewCommentMap, request);
|
||||||
validateExportTextField(data);
|
validateExportTextField(data);
|
||||||
if (CollectionUtils.isNotEmpty(textDescriptionList)) {
|
if (CollectionUtils.isNotEmpty(textDescriptionList) && !request.getIsMerge()) {
|
||||||
// 如果有多条步骤则添加多条数据,之后合并单元格
|
// 如果有多条步骤则添加多条数据,之后合并单元格
|
||||||
buildExportMergeData(rowMergeInfo, list, textDescriptionList, expectedResultList, data);
|
buildExportMergeData(rowMergeInfo, list, textDescriptionList, expectedResultList, data);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue