This commit is contained in:
qianjiawei
2024-01-30 16:55:51 +08:00
parent 4d050d8378
commit bee26d9a92
3 changed files with 8 additions and 6 deletions

View File

@@ -136,7 +136,7 @@ namespace Tnb.ProductionMgr
string codedata = _redisData.GetHash(strs[0], strs[2]).Result;
JObject? coderes = JsonConvert.DeserializeObject<JObject>(codedata);
string coderesult = coderes != null && coderes["Value"] != null ? coderes.Value<string>("Value")! : "";
var DistaskH = _repository.AsSugarClient().Queryable<WmsDistaskH>().Where(p => p.carry_code == coderesult && p.status == WmsWareHouseConst.TASK_BILL_STATUS_RUNING_ID).First();
var DistaskH = _repository.AsSugarClient().Queryable<WmsDistaskH>().Where(p => p.carry_code == coderesult && p.status == WmsWareHouseConst.TASK_BILL_STATUS_YXD_ID).First();
if (DistaskH != null)
{
dynamic reqBody = new ExpandoObject();

View File

@@ -17,7 +17,7 @@ public partial class WmsEmptyOutstockD : BaseEntity<string>
/// <summary>
/// 行号
/// </summary>
public int? no { get; set; }
public string? no { get; set; }
/// <summary>
/// 所属组织ID

View File

@@ -249,7 +249,7 @@ namespace Tnb.WarehouseMgr
{
Dictionary<string, string[]> putdic = new Dictionary<string, string[]>();
putdic.Add("SSX-021-006", new string[] { "YTCS", "AllowEmptyIn_CS06" });
putdic.Add("SSX-011-006", new string[] { "YTCS", "AllowEmptyIn_CS06" });
var strs = new string[] { };
@@ -308,7 +308,7 @@ namespace Tnb.WarehouseMgr
Dictionary<string, string[]> putdic = new Dictionary<string, string[]>();
Dictionary<string, string[]> getdic = new Dictionary<string, string[]>();
getdic.Add("SSX-021-005", new string[] { "YTCS", "FullOut_CS05Done", "true" });
putdic.Add("SSX-021-006", new string[] { "YTCS", "EmptyIn_CS06Done", "true" });
putdic.Add("SSX-011-006", new string[] { "YTCS", "EmptyIn_CS06Done", "true" });
if (action == "LOAD")//取货
{
if (getdic.Keys.Contains(disTask.startlocation_code))
@@ -321,7 +321,8 @@ namespace Tnb.WarehouseMgr
["TagName"] = strarr[1],
["Value"] = strarr[2],
};
await HttpClientHelper.GetAsync(_eleCtlCfg.WriteTagUrl, pars: dicCommand);
var str= await HttpClientHelper.GetAsync(_eleCtlCfg.WriteTagUrl, pars: dicCommand);
Logger.Information($"SsxControlLOAD:{str}");
}
}
else if (action == "UNLOAD")//放货
@@ -336,7 +337,8 @@ namespace Tnb.WarehouseMgr
["TagName"] = strarr[1],
["Value"] = strarr[2],
};
await HttpClientHelper.GetAsync(_eleCtlCfg.WriteTagUrl, pars: dicCommand);
var str = await HttpClientHelper.GetAsync(_eleCtlCfg.WriteTagUrl, pars: dicCommand);
Logger.Information($"SsxControlUNLOAD:{str}");
}
}