add- 修改return

main
SoulStar 1 month ago
parent 1495c20b1f
commit 4be709a6d9

@ -461,7 +461,6 @@ namespace Admin.Core.Service
Console.WriteLine($"批次[{plan.Batch}];配方[{item.Recipe}],导入数据失败!"); Console.WriteLine($"批次[{plan.Batch}];配方[{item.Recipe}],导入数据失败!");
} }
return "成功";
//Console.WriteLine($"{item.PId}——{item.ProductName}——{item.Recipe};状态:{r}"); //Console.WriteLine($"{item.PId}——{item.ProductName}——{item.Recipe};状态:{r}");
} }
catch (Exception ex) catch (Exception ex)
@ -472,14 +471,14 @@ namespace Admin.Core.Service
} }
} }
return "成功";
} }
catch (Exception ex) catch (Exception ex)
{ {
return ex.Message; return "执行失败" + ex.Message;
} }
return "执行失败";
} }
public async Task<string> DownZBPlanAsync(List<MesDownLoadPlanList> MesDownLoadPlanList) public async Task<string> DownZBPlanAsync(List<MesDownLoadPlanList> MesDownLoadPlanList)
@ -656,7 +655,7 @@ namespace Admin.Core.Service
//Console.WriteLine($"批次[{plan.Batch}];配方[{item.Recipe}],导入数据失败!"); //Console.WriteLine($"批次[{plan.Batch}];配方[{item.Recipe}],导入数据失败!");
} }
//Console.WriteLine($"{item.PId}——{item.ProductName}——{item.Recipe};状态:{r}"); //Console.WriteLine($"{item.PId}——{item.ProductName}——{item.Recipe};状态:{r}");
return "成功";
} }
catch (Exception ex) catch (Exception ex)
{ {
@ -665,13 +664,12 @@ namespace Admin.Core.Service
//Console.WriteLine($"配方[{item.Recipe}] 导入失败!异常信息:{ex.Message}"); //Console.WriteLine($"配方[{item.Recipe}] 导入失败!异常信息:{ex.Message}");
} }
} }
return "成功";
} }
catch (Exception ex) catch (Exception ex)
{ {
return ex.Message; return "执行失败" + ex.Message;
} }
return "执行失败";
} }
@ -846,7 +844,7 @@ namespace Admin.Core.Service
} }
else else
{ {
return "成功"; continue;
} }
//Console.WriteLine($"{item.PId}——{item.ProductName}——{item.Recipe};状态:{r}"); //Console.WriteLine($"{item.PId}——{item.ProductName}——{item.Recipe};状态:{r}");
} }
@ -859,14 +857,13 @@ namespace Admin.Core.Service
} }
return "成功";
} }
catch (Exception ex) catch (Exception ex)
{ {
return ex.Message; return "执行失败" + ex.Message;
} }
return "执行失败";
} }
#region 保存配方、计划物料信息 #region 保存配方、计划物料信息

Loading…
Cancel
Save