1
hutongqing
2024-09-24 a89c018c3afa43a529f9eb54725bc92ed2b996e8
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
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEA_Core;
using WIDESEA_Core.BaseController;
using WIDESEA_DTO.Inbound;
using WIDESEA_IInboundService;
using WIDESEA_IOutboundService;
using WIDESEA_ITaskInfoService;
using WIDESEA_Model.Models;
 
namespace WIDESEA_WMSServer.Controllers
{
    [Route("api/PDA")]
    [Authorize, ApiController]
    public class PDAController : Controller
    {
        private readonly IInboundService _inboundService;
        private readonly IOutboundService _outboundService;
        private readonly ITaskService _taskService;
 
        public PDAController(ITaskService taskService, IInboundService inboundService,IOutboundService outboundService)
        {
            _inboundService = inboundService;
            _outboundService = outboundService;
            _taskService = taskService;
        }
 
        [HttpPost, Route("CallMateriel")]
        public WebResponseContent CallMateriel(string endPoint)
        {
            return _taskService.CallMateriel(endPoint);
        }
 
        [HttpPost, Route("MaterielCarry")]
        public WebResponseContent MaterielCarry(string startPoint)
        {
            return _taskService.MaterielCarry(startPoint);
        }
 
        [HttpPost, Route("MaterielGroup")]
        public WebResponseContent MaterielGroup([FromBody] MaterielGroupDTO materielGroupDTO)
        {
            return _inboundService.InbounOrderService.MaterielGroup(materielGroupDTO);
        }
 
        [HttpPost, Route("QueryOrderInfo")]
        public WebResponseContent QueryOrderInfo(int pageNo, string orderNo)
        {
            return _inboundService.InbounOrderService.QueryOrderInfo(pageNo, orderNo);
        }
    }
}