|
|
@@ -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;
|