소스 검색

StatisticsYOY 处理遇0整除问题

LEIYI 2 달 전
부모
커밋
7fb6ec826d
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  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