Browse Source

StatisticsYOY 处理遇0整除问题

LEIYI 2 months ago
parent
commit
7fb6ec826d
1 changed files with 5 additions and 5 deletions
  1. 5 5
      OASystem/OASystem.Api/Controllers/StatisticsController.cs

+ 5 - 5
OASystem/OASystem.Api/Controllers/StatisticsController.cs

@@ -3669,7 +3669,7 @@ SELECT
       CAST(
         SUM(
           (
-            ((ccp.PayMoney * ccp.DayRate) / ccp.PayPercentage) * 100
+            (ccp.PayMoney * ccp.DayRate) 
           )
         ) AS DECIMAL(12, 2)
       )
@@ -3688,7 +3688,7 @@ SELECT
     SELECT
       CAST(
         SUM(
-          ((ccp.PayMoney * ccp.DayRate) / ccp.PayPercentage) * 100
+          (ccp.PayMoney * ccp.DayRate) 
         ) AS DECIMAL(12, 2)
       )
     FROM
@@ -3706,7 +3706,7 @@ SELECT
     SELECT
       CAST(
         SUM(
-          ((ccp.PayMoney * ccp.DayRate) / ccp.PayPercentage) * 100
+          (ccp.PayMoney * ccp.DayRate)
         ) AS DECIMAL(12, 2)
       )
     FROM
@@ -3724,7 +3724,7 @@ SELECT
     SELECT
       CAST(
         SUM(
-          ((ccp.PayMoney * ccp.DayRate) / ccp.PayPercentage) * 100
+          (ccp.PayMoney * ccp.DayRate)
         ) AS DECIMAL(12, 2)
       )
     FROM
@@ -3758,7 +3758,7 @@ SELECT
     SELECT
       CAST(
         SUM(
-          ((ccp.PayMoney * ccp.DayRate) / ccp.PayPercentage) * 100
+          (ccp.PayMoney * ccp.DayRate) 
         ) AS DECIMAL(12, 2)
       )
     FROM