yingzi 2 years ago
parent
commit
de52f960b6
1 changed files with 3 additions and 4 deletions
  1. 3 4
      Util/Common/PartnerTools.Class.php

+ 3 - 4
Util/Common/PartnerTools.Class.php

@@ -570,7 +570,7 @@ class PartnerTools{
     public function getCommissionBalanceDetail($customerId,$parms){
         $where=[];
         if(!empty($customerId)){
-            $where["customerId"] = $customerId;
+            $where["customer_id"] = $customerId;
         }
         $data = $this->dbNewCommissionBalanceDetail->select($where, "*", "id desc", $parms["limit"], $parms["offset"]);
         $total = $this->dbNewCommissionBalanceDetail->count($where);
@@ -724,9 +724,8 @@ class PartnerTools{
             $where= $parms["where"];
         }
         if(!empty($customerId)){
-            $where["customerId"] = $customerId;
+            $where["customer_id"] = $customerId;
         }
-        var_dump($where);
         $data = $this->dbNewCommissionCash->select($where, "*", "id desc", $parms["limit"], $parms["offset"]);
         $total = $this->dbNewCommissionCash->count($where);
         if(empty($data)){
@@ -747,7 +746,7 @@ class PartnerTools{
             $where= $parms["where"];
         }
         if(!empty($customerId)){
-            $where["customerId"] = $customerId;
+            $where["customer_id"] = $customerId;
         }
         $data = $this->dbNewCommissionCash->get($where);
         return $data;