|
@@ -114,6 +114,20 @@ class PayDetailController extends Curd
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (!empty($params['order_type'])){
|
|
|
|
+ if ($params['order_type'] == 'COMBINE'){
|
|
|
|
+ $model = $model->where('join_pay_order_id','COMBINE');
|
|
|
|
+ }elseif ($params['order_type'] == 'PARTNER'){
|
|
|
|
+ $model = $model->where('join_pay_order_id','PARTNER');
|
|
|
|
+ }elseif ($params['order_type'] == 'VIP'){
|
|
|
|
+ $model = $model->where('pay_category','VIP');
|
|
|
|
+ }elseif ($params['order_type'] == 'RECHARGE'){
|
|
|
|
+ $model = $model->where('join_pay_order_id','<>','PARTNER')
|
|
|
|
+ ->where('join_pay_order_id','<>','COMBINE')
|
|
|
|
+ ->where('pay_category','<>','VIP');
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
if ($field) {
|
|
if ($field) {
|
|
$model = $model->orderBy($field, $order);
|
|
$model = $model->orderBy($field, $order);
|
|
@@ -186,6 +200,7 @@ class PayDetailController extends Curd
|
|
{
|
|
{
|
|
foreach ($items as &$item) {
|
|
foreach ($items as &$item) {
|
|
$prepayId = explode('-', $item->pay_prepayid);
|
|
$prepayId = explode('-', $item->pay_prepayid);
|
|
|
|
+ $item->order_classify = $item->pay_category;
|
|
if (count($prepayId) > 1) {
|
|
if (count($prepayId) > 1) {
|
|
$item->pay_prepayid = $prepayId[1];
|
|
$item->pay_prepayid = $prepayId[1];
|
|
}
|
|
}
|
|
@@ -214,6 +229,7 @@ class PayDetailController extends Curd
|
|
}
|
|
}
|
|
$item->to_account_amount = $item->pay_amount;
|
|
$item->to_account_amount = $item->pay_amount;
|
|
if (in_array($item['join_pay_order_id'], ['COMBINE', 'PARTNER']) && !empty($item->join_pay_object_json)) {
|
|
if (in_array($item['join_pay_order_id'], ['COMBINE', 'PARTNER']) && !empty($item->join_pay_object_json)) {
|
|
|
|
+ $item->order_classify = $item['join_pay_order_id'];
|
|
$payObjectJson = json_decode($item->join_pay_object_json, true);
|
|
$payObjectJson = json_decode($item->join_pay_object_json, true);
|
|
if (isset($payObjectJson['recharge_order_id'])) {
|
|
if (isset($payObjectJson['recharge_order_id'])) {
|
|
$payDetails = PayDetail::whereJsonContains('join_pay_object_json->order_id', $payObjectJson['recharge_order_id'])
|
|
$payDetails = PayDetail::whereJsonContains('join_pay_object_json->order_id', $payObjectJson['recharge_order_id'])
|