rabin 3 years ago
parent
commit
23a7884513
1 changed files with 1 additions and 1 deletions
  1. 1 1
      service/agent/lib/Tool.php

+ 1 - 1
service/agent/lib/Tool.php

@@ -811,7 +811,7 @@ class Tool
             $ybody = $nbody = array();
             foreach ($data as $k => $v) {
                 $buy = Dever::db('shop/sell_order_goods')->getCashNum(array('goods_id' => $v['id'], 'start' => $start, 'end' => $end));
-                if ($buy) {
+                if ($buy && $buy['total']) {
                     $yes += 1;
                 } else {
                     $no += 1;