This commit is contained in:
2024-03-20 15:40:02 +08:00
parent 12f41162d5
commit 1f909839d6
3 changed files with 15 additions and 8 deletions

View File

@@ -218,8 +218,6 @@ namespace Tnb.ProductionMgr
["Value"] = strs[4],
};
HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand).Wait();
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")! : "";
@@ -279,7 +277,10 @@ namespace Tnb.ProductionMgr
string? result = res != null && res["Value"] != null ? res.Value<string>("Value") : "";
if (!string.IsNullOrEmpty(result))
{
result = result.Replace("\r", "");
if (result.Length < 5)
{
result = "LX" + result.Replace("\r", "");
}
var DistaskH = _repository.AsSugarClient().Queryable<WmsDistaskH>().Where(p => p.carry_code == result && p.status != WmsWareHouseConst.TASK_BILL_STATUS_COMPLE_ID).OrderByDescending(p => p.create_time).First();
if (DistaskH != null)
{