退款公用接口
This commit is contained in:
@@ -34,7 +34,7 @@ class OpenRefund
|
|||||||
$list = $product_order_model->openGetList($where, 'CreateTime,ProductName,PackageName,ConnectCount*AccountCount ConnectCount,Accounts,RefundRestTime,OrderState', 'CreateTime desc', "$page,50", $where2);
|
$list = $product_order_model->openGetList($where, 'CreateTime,ProductName,PackageName,ConnectCount*AccountCount ConnectCount,Accounts,RefundRestTime,OrderState', 'CreateTime desc', "$page,50", $where2);
|
||||||
$data = [
|
$data = [
|
||||||
'list' => $list,
|
'list' => $list,
|
||||||
'count' => $product_order_model->getCount($where)
|
'count' => $product_order_model->getCount($where,$where2)
|
||||||
];
|
];
|
||||||
\result($data);
|
\result($data);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,4 +25,9 @@ class ProductOrder extends Model
|
|||||||
{
|
{
|
||||||
return $this->field($fields)->where($where)->where($where2)->order($order)->limit($limit)->fetchAll();
|
return $this->field($fields)->where($where)->where($where2)->order($order)->limit($limit)->fetchAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getOpenCount($where = [],$where2 = '')
|
||||||
|
{
|
||||||
|
return $this->field('count(1) as count')->where($where)->where($where2)->fetch();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user