Explorar o código

1、修复特殊工艺数量为0导致无法重算问题

MY hai 1 día
pai
achega
ac81feb2db
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      JLHHJSvr/Helper/MattressHelper.cs

+ 2 - 0
JLHHJSvr/Helper/MattressHelper.cs

@@ -3188,6 +3188,8 @@ namespace JLHHJSvr.Helper
                     {
                         mx.qty = matchedItems.Sum(t => t?.qty ?? 0);
                     }
+
+                    if (mx.qty == null || mx.qty == 0) mx.qty = 1;
                 }
             }
         }