Browse Source

订单明细报表返回字段优化

wufeng 2 years ago
parent
commit
e353864cc0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/admin/controller/Report.php

+ 2 - 2
app/admin/controller/Report.php

@@ -624,7 +624,7 @@ class Report extends Base
         $all_send_status = [1 => '未发货', 2 => '部分发货', 3 => '已发货'];
 
 
-        $total = Db::name('purchease_order')
+        $count = Db::name('purchease_order')
             ->alias('po')
             ->leftJoin('business b', 'b.companyNo=po.companyNo AND b.is_del=0')
             ->where($where)
@@ -661,7 +661,7 @@ class Report extends Base
             $list[] = $v;
         }
 
-        return app_show(0, '请求成功', ['list' => $list, 'total' => $total]);
+        return app_show(0, '请求成功', ['list' => $list, 'count' => $count]);
 
 
     }