Commit 75f2ed93 authored by 黎博's avatar 黎博

批量修改场景用例时新增判断

parent e929afb7
......@@ -96,8 +96,11 @@ public class SceneTestcaseController {
Integer DBId = sceneTestcaseInDB.getId();
boolean flag = false;
for (SceneTestcase sceneTestcase: sceneTestcaseList) {
if (sceneTestcase.getId().equals(DBId)) {
flag = true;
// 过滤掉新增的
if (sceneTestcase.getId() != null) {
if (sceneTestcase.getId().equals(DBId)) {
flag = true;
}
}
}
if (!flag) {
......
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