shish 3 years ago
parent
commit
999472013f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      biz-ghs/stat/classes/StatYjClass.php

+ 2 - 2
biz-ghs/stat/classes/StatYjClass.php

@@ -59,7 +59,7 @@ class StatYjClass extends BaseClass
                 $arr[$shopAdminId]['pfAmount'] = bcadd($arr[$shopAdminId]['pfAmount'], $actPrice, 2);
                 $arr[$shopAdminId]['pfAmount'] = bcadd($arr[$shopAdminId]['pfAmount'], $actPrice, 2);
                 $arr[$shopAdminId]['pfNum'] = bcadd($arr[$shopAdminId]['pfNum'], 1);
                 $arr[$shopAdminId]['pfNum'] = bcadd($arr[$shopAdminId]['pfNum'], 1);
                 $arr[$shopAdminId]['num'] = bcadd($arr[$shopAdminId]['num'], 1);
                 $arr[$shopAdminId]['num'] = bcadd($arr[$shopAdminId]['num'], 1);
-                $arr[$shopAdminId]['amount'] = bcadd($arr[$shopAdminId]['amount'], $arr[$shopAdminId]['pfAmount'], 2);
+                $arr[$shopAdminId]['amount'] = bcadd($arr[$shopAdminId]['amount'], $actPrice, 2);
             }
             }
         }
         }
 
 
@@ -83,7 +83,7 @@ class StatYjClass extends BaseClass
             $arr[$shopAdminId]['lsAmount'] = bcadd($arr[$shopAdminId]['lsAmount'], $actPrice, 2);
             $arr[$shopAdminId]['lsAmount'] = bcadd($arr[$shopAdminId]['lsAmount'], $actPrice, 2);
             $arr[$shopAdminId]['lsNum'] = bcadd($arr[$shopAdminId]['lsNum'], 1);
             $arr[$shopAdminId]['lsNum'] = bcadd($arr[$shopAdminId]['lsNum'], 1);
             $arr[$shopAdminId]['num'] = bcadd($arr[$shopAdminId]['num'], 1);
             $arr[$shopAdminId]['num'] = bcadd($arr[$shopAdminId]['num'], 1);
-            $arr[$shopAdminId]['amount'] = bcadd($arr[$shopAdminId]['amount'], $arr[$shopAdminId]['lsAmount'], 2);
+            $arr[$shopAdminId]['amount'] = bcadd($arr[$shopAdminId]['amount'], $actPrice, 2);
         }
         }
         return array_values($arr);
         return array_values($arr);
     }
     }