mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-05 05:29:29 +08:00
fix(测试计划): 修改测试计划展开时报错workspase为空的问题
--bug=1026160 --user=宋天阳 【测试跟踪】进入测试计划详情报错 https://www.tapd.cn/55049933/s/1371443
This commit is contained in:
parent
b87a832882
commit
344a6938bd
@ -293,7 +293,13 @@ public class TestPlanService {
|
||||
&& res.getActualStartTime() == null) {
|
||||
testPlan.setActualStartTime(System.currentTimeMillis());
|
||||
}
|
||||
testPlanMapper.updateByPrimaryKeyWithBLOBs(testPlan);
|
||||
if (testPlan.getName() == null) {
|
||||
// 若是点击该测试计划,则仅更新了updateTime,其它字段全为null,使用updateByPrimaryKeySelective
|
||||
testPlanMapper.updateByPrimaryKeySelective(testPlan);
|
||||
} else {
|
||||
// 有修改字段的调用,为保证将某些时间置null的情况,使用updateByPrimaryKey
|
||||
testPlanMapper.updateByPrimaryKeyWithBLOBs(testPlan); // 更新
|
||||
}
|
||||
return testPlanMapper.selectByPrimaryKey(testPlan.getId());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user