fix: 接口导入选覆盖会覆盖用例之前的状态

This commit is contained in:
chenjianxing 2021-10-12 10:40:24 +08:00 committed by jianxing
parent 14799275d8
commit d74cb6d4f7
1 changed files with 3 additions and 0 deletions

View File

@ -608,6 +608,9 @@ public class ApiDefinitionService {
}
} else {
apiDefinition.setStatus(sameRequest.get(0).getStatus());
apiDefinition.setOriginalState(sameRequest.get(0).getOriginalState());
apiDefinition.setCaseStatus(sameRequest.get(0).getCaseStatus());
if (StringUtils.equalsIgnoreCase(apiDefinition.getProtocol(), RequestType.HTTP)) {
//如果存在则修改
apiDefinition.setId(sameRequest.get(0).getId());