实现
This commit is contained in:
		@@ -202,7 +202,7 @@ func (s *planService) UpdatePlan(id uint, req *dto.UpdatePlanRequest) (*dto.Plan
 | 
			
		||||
	planToUpdate.ExecuteCount = 0
 | 
			
		||||
	s.logger.Infof("计划 #%d 被更新,执行计数器已重置为 0。", planToUpdate.ID)
 | 
			
		||||
 | 
			
		||||
	if err := s.planRepo.UpdatePlan(planToUpdate); err != nil {
 | 
			
		||||
	if err := s.planRepo.UpdatePlanMetadataAndStructure(planToUpdate); err != nil {
 | 
			
		||||
		s.logger.Errorf("%s: 数据库更新计划失败: %v, Plan: %+v", actionType, err, planToUpdate)
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user