shish vor 2 Jahren
Ursprung
Commit
66b156fd9d
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 4 0
      app-pt/controllers/RenewController.php

+ 4 - 0
app-pt/controllers/RenewController.php

@@ -19,7 +19,11 @@ class RenewController extends BaseController
         if ($status > -1) {
             $where['status'] = $status;
         }
+
+        $amount = RenewClass::sum(['status' => 1], 'actPrice');
+
         $list = RenewClass::getRenewList($where);
+        $list['totalAmount'] = $amount;
         util::success($list);
     }