合并代码

main
CaesarBao 1 month ago
commit 1495c20b1f

@ -90,7 +90,7 @@ public class MesDownLoadPlanList
/// <summary>
/// 反应釜编号
/// </summary>
public string MainId { get; set; }
public string MainId { get; set; } = string.Empty;
}

@ -284,7 +284,7 @@ namespace Admin.Core.Service
list.ForEach((a) =>
{
Hw_WareHouse_Sub sb = new Hw_WareHouse_Sub();
sb.MainId = int.TryParse(a.MainId, out int value) ? value : throw new Exception("MainID格式错误请传入int类型的反应釜编号");
//sb.MainId = int.TryParse(a.MainId, out int value) ? value : throw new Exception("MainID格式错误请传入int类型的反应釜编号");
sb.PId = a.PId;
sb.ProductName = a.ProductName;
sb.MaterialID = a.Material_Code;
@ -492,7 +492,7 @@ namespace Admin.Core.Service
list.ForEach((a) =>
{
Hw_WareHouse_Sub sb = new Hw_WareHouse_Sub();
sb.MainId = int.TryParse(a.MainId, out int value) ? value : throw new Exception("MainID格式错误请传入int类型的反应釜编号");
//sb.MainId = int.TryParse(a.MainId, out int value) ? value : throw new Exception("MainID格式错误请传入int类型的反应釜编号");
sb.PId = a.PId;
sb.ProductName = a.ProductName;
sb.MaterialID = a.Material_Code;
@ -685,7 +685,7 @@ namespace Admin.Core.Service
list.ForEach((a) =>
{
Hw_WareHouse_Sub sb = new Hw_WareHouse_Sub();
sb.MainId = int.TryParse(a.MainId, out int value) ? value : throw new Exception("MainID格式错误请传入int类型的反应釜编号");
//sb.MainId = int.TryParse(a.MainId, out int value) ? value : throw new Exception("MainID格式错误请传入int类型的反应釜编号");
sb.PId = a.PId;
sb.ProductName = a.ProductName;
sb.BinId = a.BinId == "" || a.BinId == null ? 0 : int.Parse(a.BinId);

Loading…
Cancel
Save