fix: 接口导入选覆盖会覆盖用例之前的状态
This commit is contained in:
parent
14799275d8
commit
d74cb6d4f7
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue