<fix>[normal]优化入库请求逻辑代码
This commit is contained in:
parent
22980e9f2a
commit
3a245faa2c
|
|
@ -1,28 +1,44 @@
|
|||
namespace WcsMain.ApiClient.DataEntity.WmsEntity;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace WcsMain.ApiClient.DataEntity.WmsEntity;
|
||||
|
||||
/// <summary>
|
||||
/// 申请入库
|
||||
/// </summary>
|
||||
public class ApplyInRequest
|
||||
{
|
||||
public ApplyInRequest(string? point, string? vehicleNo, string? codeMessage = "", string? remark = "")
|
||||
{
|
||||
Point = point;
|
||||
VehicleNo = vehicleNo;
|
||||
CodeMessage = codeMessage;
|
||||
Remark = remark;
|
||||
}
|
||||
|
||||
public ApplyInRequest() { }
|
||||
|
||||
/// <summary>
|
||||
/// 申请点位
|
||||
/// </summary>
|
||||
[JsonPropertyName("point")]
|
||||
public string? Point { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 载具号
|
||||
/// </summary>
|
||||
[JsonPropertyName("vehicleNo")]
|
||||
public string? VehicleNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 条码信息
|
||||
/// </summary>
|
||||
[JsonPropertyName("codeMessage")]
|
||||
public string? CodeMessage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[JsonPropertyName("remark")]
|
||||
public string? Remark { get; set; }
|
||||
|
||||
}
|
||||
|
|
@ -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, WmsResponse>(applyInRequest, CommonData.AppConfig.ApplyEnterApiAddress ?? "");
|
||||
if(!postResult.IsSend || postResult.ResponseEntity == default)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user