shish 3 жил өмнө
parent
commit
90a00c84a6

+ 0 - 15
app-pt/controllers/TestController.php

@@ -48,21 +48,6 @@ class TestController extends PublicController
         $shop = ShopClass::getById($shopId, true);
         $mainId = $shop->mainId ?? 0;
 
-        $pfIncome = 0;
-        $pfSendCost = 0;
-        $where = ['mainId' => $mainId, 'status' => ['in', [OrderClass::ORDER_STATUS_UN_SEND, OrderClass::ORDER_STATUS_SENDING, OrderClass::ORDER_STATUS_COMPLETE]]];
-        $where['payTime'] = ['between', [$currentStartTime, $currentEndTime]];
-        $ghsOrderList = OrderClass::getAllByCondition($where, null, '*');
-        if (!empty($ghsOrderList)) {
-            foreach ($ghsOrderList as $ghsKey => $ghsOrder) {
-                $actPrice = $ghsOrder['actPrice'] ?? 0;
-                $sendCost = $ghsOrder['sendCost'] ?? 0;
-                $pfIncome = bcadd($pfIncome, $actPrice, 2);
-                $pfSendCost = bcadd($pfSendCost, $sendCost, 2);
-            }
-        }
-        echo $pfIncome . "<br />";
-
         //零售开单
         $lsIncome = 0;
         $lsSendCost = 0;