/// <summary>
        /// 恢复任务
        /// </summary>
        /// <param name="jobId">任务编号</param>
        /// <returns></returns>
        public JsonResult ResumeJob(int jobId)
        {
            //ChangeCustomerJobState(jobId, (int)TriggerState.Normal);
            var ajaxResponseData = _operateJob(jobId, (jobDetail) =>
            {
                //jobDetail.TriggerState = 6;
                //_customerJobInfoRepository.UpdateCustomerJobInfo(jobDetail);
                return(_triggerBase.ResumeJob(jobDetail));
            });

            return(Json(ajaxResponseData));
        }
Ejemplo n.º 2
0
        public JsonResult ResumeJob(int jobId)
        {
            var ajaxResponseData = _operateJob(jobId, (jobDetail) => { return(_triggerBase.ResumeJob(jobDetail)); });

            return(Json(ajaxResponseData));
        }