自动签收修改

This commit is contained in:
2024-09-15 18:05:04 +08:00
parent 9da0a173ae
commit 6c4cf4ccd4
2 changed files with 40 additions and 21 deletions

View File

@@ -916,17 +916,17 @@ namespace Tnb.ProductionMgr
result += e.Message;
}
try
{
string response2 = HttpUtils.RequestGet($"{config.value}/api/production/time-work/sync-material",null,10*60*1000);
AuthResponse authResponse2 = JsonConvert.DeserializeObject<AuthResponse>(response2);
result += ","+authResponse2.data.ToString();
}
catch (Exception e)
{
Log.Error(e.Message,e);
result += e.Message;
}
// try
// {
// string response2 = HttpUtils.RequestGet($"{config.value}/api/production/time-work/sync-material",null,10*60*1000);
// AuthResponse authResponse2 = JsonConvert.DeserializeObject<AuthResponse>(response2);
// result += ","+authResponse2.data.ToString();
// }
// catch (Exception e)
// {
// Log.Error(e.Message,e);
// result += e.Message;
// }
try
{
@@ -1286,6 +1286,13 @@ namespace Tnb.ProductionMgr
await _db.Ado.CommitTranAsync();
msg = $"新增物料{insertMaterial.Count}条,修改物料{editCount}条";
BasSyncRecord basSyncRecord = new BasSyncRecord()
{
msg = msg,
create_time = DateTime.Now
};
await _db.Insertable(basSyncRecord).ExecuteCommandAsync();
}
catch (Exception e)
{