|
|
@@ -19,6 +19,7 @@ use app\adminapi\lists\BaseAdminDataLists;
|
|
|
use app\common\enum\RefundEnum;
|
|
|
use app\common\lists\ListsExtendInterface;
|
|
|
use app\common\lists\ListsSearchInterface;
|
|
|
+use app\common\model\orders\RechargeOrder;
|
|
|
use app\common\model\refund\RefundRecord;
|
|
|
use app\common\service\FileService;
|
|
|
|
|
|
@@ -55,6 +56,13 @@ class RefundRecordLists extends BaseAdminDataLists implements ListsSearchInterfa
|
|
|
public function queryWhere($flag = true)
|
|
|
{
|
|
|
$where = [];
|
|
|
+ if (isset($this->params['work_id']) && !empty($this->params['work_id'])) {
|
|
|
+ $order_ids = RechargeOrder::where('work_id', $this->params['work_id'])->column('id')?:[0];
|
|
|
+ if($order_ids){
|
|
|
+ $where[] = ['r.order_type', '=', 'order'];
|
|
|
+ $where[] = ['r.order_id', 'IN', $order_ids];
|
|
|
+ }
|
|
|
+ }
|
|
|
if (!empty($this->params['user_info'])) {
|
|
|
$where[] = ['u.sn|u.nickname|u.mobile|u.account', 'like', '%' . $this->params['user_info'] . '%'];
|
|
|
}
|