diff --git a/module/programplan/zen.php b/module/programplan/zen.php index d23184e624..dc3b61bb55 100644 --- a/module/programplan/zen.php +++ b/module/programplan/zen.php @@ -84,6 +84,7 @@ class programplanZen extends programplan $plan->hasProduct = $project->hasProduct; $plan->parent = $parentID ? $parentID : $projectID; if($plan->id && isset($oldPlans[$plan->id])) $plan->parent = $oldPlans[$plan->id]->parent; + if(!empty($plan->percent) && $plan->type != 'stage') $plan->percent = 0; // 非阶段类型,工作量占比为0 if(empty($plan->days)) $plan->days = helper::diffDate($plan->end, $plan->begin) + 1; if(!empty($parentID) && !empty($parentStage) && $parentStage->attribute != 'mix') $plan->attribute = $parentStage->attribute;;