去除warn

This commit is contained in:
2023-06-19 16:27:13 +08:00
parent 0b492898af
commit aea9e3a9d5
69 changed files with 512 additions and 483 deletions

View File

@@ -2,7 +2,7 @@ namespace Tnb.ProductionMgr.Entities.Dto
{
public class MaterialReceiptInput
{
public string id { get; set; }
public string? id { get; set; }
/// <summary>
/// 签收单号
@@ -59,6 +59,6 @@ namespace Tnb.ProductionMgr.Entities.Dto
/// </summary>
public string? mbom_process_id { get; set; }
public List<Dictionary<string,string>> details { get; set; }
public List<Dictionary<string,string>>? details { get; set; }
}
}

View File

@@ -95,7 +95,7 @@ namespace Tnb.ProductionMgr
{
mo_task_id = input.data["mo_task_id"]?.ToString(),
mo_task_code = input.data["mo_task_code"]?.ToString(),
reported_qty = (int)item["reported_qty"],
reported_qty = item["reported_qty"]!=null ? (int)item["reported_qty"] : 0,
create_id = item["create_id"]?.ToString(),
create_time = DateTime.Now,
});