diff --git a/WcsMain/ApiClient/DataEntity/WmsEntity/ApplyInRequest.cs b/WcsMain/ApiClient/DataEntity/WmsEntity/ApplyInRequest.cs index a96c3da..98d758b 100644 --- a/WcsMain/ApiClient/DataEntity/WmsEntity/ApplyInRequest.cs +++ b/WcsMain/ApiClient/DataEntity/WmsEntity/ApplyInRequest.cs @@ -1,28 +1,44 @@ -namespace WcsMain.ApiClient.DataEntity.WmsEntity; +using System.Text.Json.Serialization; + +namespace WcsMain.ApiClient.DataEntity.WmsEntity; /// /// 申请入库 /// public class ApplyInRequest { + public ApplyInRequest(string? point, string? vehicleNo, string? codeMessage = "", string? remark = "") + { + Point = point; + VehicleNo = vehicleNo; + CodeMessage = codeMessage; + Remark = remark; + } + + public ApplyInRequest() { } + /// /// 申请点位 /// + [JsonPropertyName("point")] public string? Point { get; set; } /// /// 载具号 /// + [JsonPropertyName("vehicleNo")] public string? VehicleNo { get; set; } /// /// 条码信息 /// + [JsonPropertyName("codeMessage")] public string? CodeMessage { get; set; } /// /// 备注 /// + [JsonPropertyName("remark")] public string? Remark { get; set; } } \ No newline at end of file diff --git a/WcsMain/Business/Convey/HistoryDataHandler/HisGetData/LoginGetData.cs b/WcsMain/Business/Convey/HistoryDataHandler/HisGetData/LoginGetData.cs index 36a6aaf..1018c43 100644 --- a/WcsMain/Business/Convey/HistoryDataHandler/HisGetData/LoginGetData.cs +++ b/WcsMain/Business/Convey/HistoryDataHandler/HisGetData/LoginGetData.cs @@ -49,12 +49,7 @@ public class LoginGetData(WmsWebApiPost wmsWebApiPost) : IBaseGetData } } /* 发送 WMS 请求入库 */ - ApplyInRequest applyInRequest = new() - { - Point = area, - VehicleNo = code, - CodeMessage = msg - }; + ApplyInRequest applyInRequest = new(area, code, msg); var postResult = _wmsWebApiPost.HttpPost(applyInRequest, CommonData.AppConfig.ApplyEnterApiAddress ?? ""); if(!postResult.IsSend || postResult.ResponseEntity == default) {