chen_yjin 3 週間 前
コミット
d568d07d42

+ 2 - 0
JLHHJSvr/Excutor/SaveMattressExcutor.cs

@@ -1,6 +1,7 @@
 using System;
 using System.Collections.Generic;
 using System.Data.SqlClient;
+using System.Diagnostics;
 using System.Linq;
 using System.Text;
 using DirectService.Tools;
@@ -273,6 +274,7 @@ namespace JLHHJSvr.Excutor
                     {
                         cmd.Transaction.Rollback();
                         rslt.ErrMsg = e.ToString();
+                        Trace.Write(e);
                     }
 
 

+ 1 - 1
JLHHJSvr/Helper/MattressHelper.cs

@@ -2377,7 +2377,7 @@ namespace JLHHJSvr.Helper
                             if (arr.Count > 0)
                             {
                                 mtrlid = arr[0].erp_mtrlid.Value;
-                                formulaid = arr[0].formulaid.Value;
+                                if (arr[0].formulaid != null) formulaid = arr[0].formulaid.Value;
                             }
                             qdmx.erp_mtrlid = mtrlid;
                             qdmx.formulaid = formulaid;