mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-05 05:29:29 +08:00
fix(测试计划): 修复测试计划已归档状态被自动更新的问题
--bug=1026180 --user=宋天阳 【测试跟踪】测试计划 https://www.tapd.cn/55049933/s/1371575
This commit is contained in:
parent
03c5ea22d1
commit
738c01ecd4
@ -509,7 +509,7 @@ public class TestPlanService {
|
||||
item.setPrincipalUsers(planPrincipal);
|
||||
|
||||
// 还没有结束的计划,如果设置了结束时间,并且已经到了结束时间,则将状态改为已结束
|
||||
if (!StringUtils.equals(item.getStatus(), TestPlanStatus.Finished.name())
|
||||
if (!StringUtils.equalsAny(item.getStatus(), TestPlanStatus.Finished.name(), TestPlanStatus.Archived.name())
|
||||
&& item.getPlannedEndTime() != null && System.currentTimeMillis() > item.getPlannedEndTime()) {
|
||||
item.setStatus(TestPlanStatus.Finished.name());
|
||||
changeToFinishedIds.add(item.getId());
|
||||
|
Loading…
Reference in New Issue
Block a user