fix(测试跟踪): 脑图编辑保存已经删除的用例报错

--bug=1033455 --user=陈建星 【测试跟踪】github#27866使用脑图进行修改和新增用例,保存后,页面未报错,重新打开后,用例未保存上,数据丢失 https://www.tapd.cn/55049933/s/1444658
This commit is contained in:
AgAngle 2023-12-18 13:49:37 +08:00 committed by 刘瑞斌
parent 7b1e51cb1f
commit b55cb5e3b8
1 changed files with 4 additions and 0 deletions

View File

@ -432,6 +432,10 @@ public class TestCaseService {
testCase.setUpdateTime(System.currentTimeMillis());
TestCaseWithBLOBs originCase = testCaseMapper.selectByPrimaryKey(testCase.getId());
if (originCase == null || StringUtils.equalsIgnoreCase(originCase.getStatus(), CommonConstants.TrashStatus)) {
return null;
}
if (handleDemand) {
try {
// 同步缺陷与需求的关联关系