Browse Source

数据看板未发货接口完成

wufeng 2 years ago
parent
commit
e1e74d074a
1 changed files with 6 additions and 1 deletions
  1. 6 1
      app/admin/controller/Data.php

+ 6 - 1
app/admin/controller/Data.php

@@ -260,7 +260,12 @@ class Data extends BaseController
     //6.未发货
     public function waitSendTotal()
     {
-        return 123;
+
+        $rs = Db::name('sale')
+            ->field('count(id) order_num,sum(wsend_num) wsend_num')
+            ->where(['is_del'=>0,'status'=>1])//status==1 待发货
+            ->find();
+        return app_show(0,'请求成功',$rs);
     }
 
     //7.今日订单