shish 3 жил өмнө
parent
commit
2d15ea9141

+ 4 - 0
app-ghs/controllers/ClearController.php

@@ -105,6 +105,10 @@ class ClearController extends BaseController
         }
         $where['ghsShopId'] = $this->shopId ?? 0;
         $list = ClearService::getClearList($where);
+
+        $totalAmount = ClearClass::sum(['ghsShopId' => $this->shopId, 'status' => 2,], 'realPrice');
+        $list['totalAmount'] = $totalAmount;
+
         util::success($list);
     }