/// <summary>
 /// 修改承载服务运行状态
 /// </summary>
 /// <param name="modifyInfo">修改信息</param>
 /// <returns></returns>
 public Result ModifyRunState(ModifyJobServerHostRunStatusCmdDto modifyInfo)
 {
     using (var businessWork = WorkFactory.Create())
     {
         if (modifyInfo == null || modifyInfo.JobServerHosts.IsNullOrEmpty())
         {
             return(Result.FailedResult("没有指定要修改的信息"));
         }
         var jobServerHostList = modifyInfo.JobServerHosts.Select(c => c.MapTo <JobServerHost>());
         jobServerHostService.ModifyRunState(jobServerHostList);
         var commitResult = businessWork.Commit();
         var result       = commitResult.ExecutedSuccess ? Result.SuccessResult("修改成功") : Result.FailedResult("修改失败");
         return(result);
     }
 }
 /// <summary>
 /// 修改承载服务运行状态
 /// </summary>
 /// <param name="modifyInfo">修改信息</param>
 /// <returns></returns>
 public Result ModifyRunState(ModifyJobServerHostRunStatusCmdDto modifyInfo)
 {
     return(jobServerHostBusiness.ModifyRunState(modifyInfo));
 }