fix(测试跟踪): 脑图拖拽用例到已物理删除的用例上边,保存会报错

--bug=1024024 --user=陈建星 【测试跟踪】脑图模式拖拽用例到已删除用例之前报错 https://www.tapd.cn/55049933/s/1347966
This commit is contained in:
chenjianxing 2023-03-10 11:14:17 +08:00 committed by jianxing
parent 96b9ae1e38
commit d182c2fc76
1 changed files with 6 additions and 0 deletions

View File

@ -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())) {