瀏覽代碼

去掉 totalStudent

shish 2 月之前
父節點
當前提交
2a73585405
共有 2 個文件被更改,包括 0 次插入2 次删除
  1. 0 1
      biz-hd/stat/classes/StatStudentClass.php
  2. 0 1
      biz-hd/stat/classes/StatStudentMonthClass.php

+ 0 - 1
biz-hd/stat/classes/StatStudentClass.php

@@ -20,7 +20,6 @@ class StatStudentClass extends BaseClass
             $stat = self::add(['shopId' => $shopId, 'sjId' => $sjId, 'time' => $date], true);
         }
         $stat->riseNum += 1;
-        $stat->totalNum = $shop->totalStudent + 1;
         $stat->save();
         StatStudentMonthClass::addStudent($shop);
     }

+ 0 - 1
biz-hd/stat/classes/StatStudentMonthClass.php

@@ -21,7 +21,6 @@ class StatStudentMonthClass extends BaseClass
             $stat = self::add(['sjId' => $sjId, 'shopId' => $shopId, 'time' => $month], true);
         }
         $stat->riseNum += 1;
-        $stat->totalNum = $shop['totalStudent'] + 1;
         $stat->save();
     }