fix(用例管理): 修复导入不勾选重复也导入的问题
--bug=1045518 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001045518
This commit is contained in:
parent
927fd92abb
commit
9cc77a5006
|
@ -330,7 +330,7 @@ public class FunctionalCaseFileService {
|
|||
XMindCaseParser xMindParser = new XMindCaseParser(request, customFields, user, lasePos);
|
||||
errList = xMindParser.parse(multipartFile);
|
||||
response.setErrorMessages(errList);
|
||||
response.setSuccessCount(xMindParser.getList().size() + xMindParser.getUpdateList().size());
|
||||
response.setSuccessCount(xMindParser.getList().size() + xMindParser.getUpdateList().size()+ xMindParser.getCheckSuccessList().size());
|
||||
response.setFailCount(errList.size());
|
||||
xMindParser.clear();
|
||||
return response;
|
||||
|
@ -407,7 +407,7 @@ public class FunctionalCaseFileService {
|
|||
}
|
||||
xmindParser.saveData();
|
||||
response.setErrorMessages(errList);
|
||||
response.setSuccessCount(xmindParser.getList().size() + xmindParser.getUpdateList().size());
|
||||
response.setSuccessCount(xmindParser.getList().size() + xmindParser.getUpdateList().size()+ xmindParser.getCheckSuccessList().size());
|
||||
response.setFailCount(errList.size());
|
||||
xmindParser.clear();
|
||||
return response;
|
||||
|
|
|
@ -46,6 +46,8 @@ public class XMindCaseParser {
|
|||
@Getter
|
||||
protected List<FunctionalCaseExcelData> list = new ArrayList<>();
|
||||
@Getter
|
||||
protected List<FunctionalCaseExcelData> checkSuccessList = new ArrayList<>();
|
||||
@Getter
|
||||
protected List<FunctionalCaseExcelData> updateList = new ArrayList<>();
|
||||
|
||||
private FunctionalCaseService functionalCaseService;
|
||||
|
@ -93,6 +95,7 @@ public class XMindCaseParser {
|
|||
public void clear() {
|
||||
list.clear();
|
||||
updateList.clear();
|
||||
checkSuccessList.clear();
|
||||
pathMap.clear();
|
||||
moduleTree = new ArrayList<>();
|
||||
customFieldValidatorMap = new HashMap<>();
|
||||
|
@ -288,7 +291,7 @@ public class XMindCaseParser {
|
|||
functionalCaseExcelData.setNum(checkResult);
|
||||
updateList.add(functionalCaseExcelData);
|
||||
} else {
|
||||
list.add(functionalCaseExcelData);
|
||||
checkSuccessList.add(functionalCaseExcelData);
|
||||
}
|
||||
} else {
|
||||
list.add(functionalCaseExcelData);
|
||||
|
|
Loading…
Reference in New Issue