duyongjia
2024-12-29 9a0acba23c5b5095be2a89b8ca190fe5202c2ea6
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
93
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using WIDESEA_Core.BaseController;
using WIDESEA_Core.Helper;
using WIDESEA_ISystemService;
using WIDESEA_Model.Models;
using WIDESEA_DTO.System;
using WIDESEA_Core;
using WIDESEA_Model;
using WIDESEA_Model.Models.System.Request;
using WIDESEA_Model.Models.System.Reponse;
 
namespace WIDESEA_WMSServer.Controllers.System
{
    [Route("api/Sys_Job")]
    [ApiController]
    public class Sys_JobController : ApiBaseController<ISys_JobService, Sys_Job>
    {
        private readonly IHttpContextAccessor _httpContextAccessor;
        private readonly ISys_JobService _sys_JobService;
        public Sys_JobController(ISys_JobService service, IHttpContextAccessor httpContextAccessor) : base(service)
        {
            _httpContextAccessor = httpContextAccessor;
            _sys_JobService = service;
        }
        /// <summary>
        /// 同步比亚迪WMS条码主数据
        /// </summary>
        /// <returns></returns>
        [HttpPost, Route("SyncLabMaster"), AllowAnonymous]
        public WebResponseContent SyncLabMaster()
        {
            return _sys_JobService.SyncLabMaster();
        }
 
        /// <summary>
        /// 回调比亚迪WMS上架结果回传
        /// </summary>
        /// <param name="putAway"></param>
        /// <returns></returns>
        [HttpPost, Route("CallPutAway"), AllowAnonymous]
        public WebResponseContent CallPutAway([FromBody] PutAwayRequest putAway)
        {
            return _sys_JobService.CallPutAway(putAway);
        }
 
        /// <summary>
        /// 比亚迪出库指令接口
        /// </summary>
        /// <param></param>
        /// <returns></returns>
        [HttpPost, Route("SelectOutStoreOrder"), AllowAnonymous]
        public WebResponseContent SelectOutStoreOrder()
        {
            return _sys_JobService.SelectOutStoreOrder();
        }
 
 
        /// <summary>
        /// 回调比亚迪WMS出库完成信息接口
        /// </summary>
        /// <param name="pickAndPost"></param>
        /// <returns></returns>
        [HttpPost, Route("CallPickAndPost"), AllowAnonymous]
        public WebResponseContent CallPickAndPost([FromBody] PickAndPostRequest pickAndPost)
        {
            return _sys_JobService.CallPickAndPost(pickAndPost);
        }
 
       
 
       
 
        /// <summary>
        /// 回调比亚迪WMS余料回库完成信息接口
        /// </summary>
        /// <param name="putAway"></param>
        /// <returns></returns>
        [HttpPost, Route("CallPutAwayReturn"), AllowAnonymous]
        public WebResponseContent CallPutAwayReturn([FromBody] PutAwayReturnRequest putAwayReturn)
        {
            return _sys_JobService.CallPutAwayReturn(putAwayReturn);
        }
 
 
 
 
 
 
 
    }
}