yanjinhui
2025-05-27 f1a841f056fe4d7be16f39d6fe169667f743d00a
project/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/MaintenanceController.cs
@@ -4,6 +4,7 @@
using System;
using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseController;
using WIDESEAWCS_Core.Helper;
using WIDESEAWCS_DTO.Telescopic;
using WIDESEAWCS_ITelescopicService;
using WIDESEAWCS_IWMSPart;
@@ -15,6 +16,7 @@
    [ApiController]
    public class MaintenanceController : ApiBaseController<IMaintenanceService, Dt_Maintenance>
    {
        public MaintenanceController(IMaintenanceService service) : base(service)
        {
@@ -49,6 +51,7 @@
        [HttpPost,Route("RunOperation"), AllowAnonymous]
        public WebResponseContent RunOperation(int id, string ispossible)
        {
            //
            return Service.RunOperation(id,ispossible);
        }
@@ -71,6 +74,7 @@
        [HttpPost, Route("MaintenanceOperationRecord"), AllowAnonymous]
        public WebResponseContent MaintenanceOperationRecord([FromBody] PaginationDTO pagination)
        {
            return Service.MaintenanceOperationRecord(pagination);
        }
@@ -83,6 +87,7 @@
        [HttpPost, Route("MaintenanceTasksOfTheDay"), AllowAnonymous]
        public WebResponseContent MaintenanceTasksOfTheDay(string account)
        {
            return Service.MaintenanceTasksOfTheDay(account);
        }
@@ -96,7 +101,9 @@
        [HttpPost, Route("StartMaintenceTask"), AllowAnonymous]
        public WebResponseContent StartMaintenceTask(string account)
        {
            return Service.StartMaintenceTask(account);
            var userIp = HttpContext.GetUserIp();//用户电脑ip
            var reslut = userIp.Replace("::ffff:", " ");
            return Service.StartMaintenceTask(account, reslut);
        }