fix(测试跟踪): 脑图拖拽用例到已物理删除的用例上边,保存会报错
--bug=1024024 --user=陈建星 【测试跟踪】脑图模式拖拽用例到已删除用例之前报错 https://www.tapd.cn/55049933/s/1347966
This commit is contained in:
parent
96b9ae1e38
commit
d182c2fc76
|
@ -258,6 +258,12 @@ public class ServiceUtils {
|
|||
|
||||
// 获取移动的参考对象
|
||||
T target = selectByPrimaryKeyFunc.apply(request.getTargetId());
|
||||
|
||||
if (target == null) {
|
||||
// 如果参考对象被删除,则不处理
|
||||
return;
|
||||
}
|
||||
|
||||
Long targetOrder = (Long) getOrder.invoke(target);
|
||||
|
||||
if (request.getMoveMode().equals(ResetOrderRequest.MoveMode.AFTER.name())) {
|
||||
|
|
Loading…
Reference in New Issue