yangpeixing
9 天以前 4fc31b41c205507607c91ab3afe10fbc06a9aa09
项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs
@@ -1,11 +1,14 @@
锘縰sing Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.Linq;
using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseController;
using WIDESEAWCS_DTO.TaskInfo;
using WIDESEAWCS_ITaskInfoService;
using WIDESEAWCS_Model.Models;
using WIDESEAWCS_QuartzJob;
using WIDESEAWCS_Tasks.ElevatorJob;
namespace WIDESEAWCS_WCSServer.Controllers.Task
{
@@ -25,26 +28,13 @@
            return Service.ReceiveWMSTask(taskDTOs);
        }
        [HttpPost, Route("ReceiveByWMSTask"), AllowAnonymous]
        public WebResponseContent ReceiveByWMSTask([FromBody] WMSTaskDTO taskDTOs)
        {
            return Service.ReceiveByWMSTask(taskDTOs);
        }
        [HttpPost, Route("ReceiveByWMSGWTask"), AllowAnonymous]
        public WebResponseContent ReceiveByWMSGWTask([FromBody] WMSTaskDTO taskDTOs)
        {
            return Service.ReceiveByWMSGWTask(taskDTOs);
        }
        [HttpPost, HttpGet, Route("UpdateTaskExceptionMessage")]
        public WebResponseContent UpdateTaskExceptionMessage(int taskNum, string message)
        {
            return Service.UpdateTaskExceptionMessage(taskNum, message);
        }
        [HttpPost, HttpGet, Route("UpdateTaskStatusToNext")]
        [HttpPost, HttpGet, Route("UpdateTaskStatusToNext") ,AllowAnonymous]
        public WebResponseContent UpdateTaskStatusToNext(int taskNum)
        {
            return Service.UpdateTaskStatusToNext(taskNum);
@@ -61,5 +51,11 @@
        {
            return Service.RollbackTaskStatusToLast(taskNum);
        }
        [HttpPost, HttpGet, Route("SendAgvTask"),AllowAnonymous]
        public WebResponseContent SendAgvTask(string modelProcessCode, int taskNum)
        {
            return Service.SendAgvTask(modelProcessCode, taskNum);
        }
    }
}