wuggemail@foxmail.com 3 weeks ago
parent
commit
59c4bbae69
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/admin/command/EveryAccountInv.php

+ 3 - 3
app/admin/command/EveryAccountInv.php

@@ -78,7 +78,7 @@ class EveryAccountInv extends Command
             ->whereDay("a.updatetime",$this->date)
             ->field("sum(b.goodNum* ifnull(d.goodPrice,0)) as cost_fee,sum(b.totalPrice) as inv_fee,c.manager,c.managerid")
             ->group("c.manager,c.managerid")
-            ->select();
+            ->select()->toArray();
         return $invTotal;
     }
     public function getReturnInv()
@@ -88,10 +88,10 @@ class EveryAccountInv extends Command
             ->leftJoin("invoice_good c","b.invNo=c.invNo and c.is_del=0 and c.goodNum>0")
             ->leftJoin("qrd_info d","c.orderCode = d.sequenceNo")
             ->leftJoin("cgd_info e","d.cgdNo = e.sequenceNo")
-            ->where([["a.status","=","2"],['a.is_del',"=",0]])
+            ->where([["a.status","=","2"]])
             ->whereDay("a.updatetime",$this->date)
             ->field("sum(c.goodNum* ifnull(e.goodPrice,0)) as return_cost_fee,sum(c.totalPrice) as return_inv_fee,d.manager,d.managerid")
             ->group("d.manager,d.managerid")
-            ->select();
+            ->select()->toArray();
     }
 }