Browse Source

提现修改

lizhen_gitee 1 year ago
parent
commit
e7b9a02d6b

+ 20 - 0
application/api/controller/company/Index.php

@@ -245,6 +245,26 @@ class Index extends Apic
 
     }
     public function datacenter_four(){
+        $date = input('date',date('Y-m-01'));
+        $starttime = strtotime($date);    //月初第一天
+        $endtime = strtotime("+1 month",$starttime) - 1; //月末最后一天
+
+        $staff = Db::name('company_staff')->field('id,')->where('company_id',$this->auth->company_id)->select();
+
+        //柱状图
+        $ec_date = [];
+        $ec_ordernum = [];
+
+        $map = [
+            'company_id'  => $this->auth->company_id,
+        ];
+
+
+            //日历
+            $ec_date[] = date('d',$starttime_i).'日';
+            //下单人数
+            $map['finish_time'] = ['between',[$starttime_i,$endtime_i]];
+            $ec_ordernum[] = Db::name('order')->where($map)->count('id');
 
     }
 

+ 1 - 1
application/api/controller/company/Takecash.php

@@ -55,7 +55,7 @@ class Takecash extends Apic
         //查重
         $check = Db::name('company_take_cash')->where(['user_id'=>$this->auth->company_id,'status'=>0])->find();
         if($check){
-            $this->success('您已经申请了提现,请等待审核');
+            $this->error('您已经申请了提现,请等待审核');
         }
 
         //对比