111
yanjinhui
2025-03-28 2d4e07b5d61490d3c3cfeb398d3d6e4b6f8be9bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseController;
using WIDESEAWCS_DTO.Telescopic;
using WIDESEAWCS_ITelescopicService;
using WIDESEAWCS_IWMSPart;
using WIDESEAWCS_Model.Models;
 
namespace WIDESEAWCS_Server.Controllers.Telescopic
{
    [Route("api/[controller]")]
    [ApiController]
    public class MaintenanceController : ApiBaseController<IMaintenanceService, Dt_Maintenance>
    {
        public MaintenanceController(IMaintenanceService service) : base(service)
        {
 
        }
 
        /// <summary>
        /// 查看检修管理
        /// </summary>
        /// <returns></returns>
<<<<<<< Updated upstream
        [HttpGet,Route("ShowMaintence"),AllowAnonymous]
        public WebResponseContent ShowMaintence()
        {
            return Service.ShowMaintence();
=======
        [HttpPost,Route("ShowMaintence"),AllowAnonymous]
        public WebResponseContent ShowMaintence([FromBody] PaginationDTO pagination)
        {
            return Service.ShowMaintence(pagination);
>>>>>>> Stashed changes
        }
 
        /// <summary>
        /// 在检修人员监控
        /// </summary>
        /// <returns></returns>
        [HttpPost, Route("PersonnelMonitoring"), AllowAnonymous]
<<<<<<< Updated upstream
        public WebResponseContent PersonnelMonitoring(bool ispossible)
        {
            return Service.PersonnelMonitoring(ispossible);
=======
        public WebResponseContent PersonnelMonitoring([FromBody] PaginationDTO pagination)
        {
            return Service.PersonnelMonitoring(pagination);
>>>>>>> Stashed changes
        }
 
 
        /// <summary>
        /// 更改状态,运行进入检修
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        [HttpPost,Route("RunOperation"), AllowAnonymous]
        public WebResponseContent RunOperation(int id)
        {
            return Service.RunOperation(id);
        }
 
        /// <summary>
        /// 更改状态
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        [HttpPost, Route("ChangeTasState"), AllowAnonymous]
        public WebResponseContent ChangeTasState(int id)
        {
            return Service.ChangeTasState(id);
        }
<<<<<<< Updated upstream
=======
 
 
        /// <summary>
        /// 检修操作记录
        /// </summary>
        /// <returns></returns>
        [HttpPost, Route("MaintenanceOperationRecord"), AllowAnonymous]
        public WebResponseContent MaintenanceOperationRecord([FromBody] PaginationDTO pagination)
        {
            return Service.MaintenanceOperationRecord(pagination);
        }
>>>>>>> Stashed changes
    }
}