yuanrf 1 gün önce
ebeveyn
işleme
60cb5aa79f

+ 8 - 3
OASystem/OASystem.Api/Controllers/GroupsController.cs

@@ -34947,6 +34947,11 @@ ORDER BY
                 data.Coefficient = 1;
             }
 
+            if (data.Count == 0)
+            {
+                data.Count = 1;
+            }
+
             var id = await _sqlSugar.Insertable(data).ExecuteReturnIdentityAsync();
             return Ok(JsonView(true, "SUCCESS", new { id }));
         }
@@ -34987,7 +34992,7 @@ ORDER BY
             child.CostPrice = 0;
             child.Currency = 836;
             child.Rate = 1;
-            child.Count = 0;
+            child.Count = 1;
             child.Unit = 0;
             child.Coefficient = 1;
             child.BaoJiaPrice = 0;
@@ -35005,9 +35010,9 @@ ORDER BY
                 costPrice = 0m,
                 currency = 836,
                 rate = 1m,
-                count = 0,
+                count = 1,
                 unit = "",
-                coefficient = 0m,
+                coefficient = 1m,
                 baoJiaPrice = 0m,
                 addedValue = 0m,
                 details = "",