|
|
@@ -56,7 +56,7 @@ class RechargeLists extends BaseAdminDataLists implements ListsSearchInterface,
|
|
|
*/
|
|
|
public function setFileName(): string
|
|
|
{
|
|
|
- return '充值记录';
|
|
|
+ return '入驻记录';
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -106,9 +106,10 @@ class RechargeLists extends BaseAdminDataLists implements ListsSearchInterface,
|
|
|
public function lists(): array
|
|
|
{
|
|
|
$field = 'ro.id,ro.sn,ro.order_amount,ro.pay_way,ro.pay_time,ro.pay_status,ro.create_time,ro.refund_status';
|
|
|
- $field .= ',u.avatar,u.nickname,u.account';
|
|
|
+ $field .= ',u.avatar,u.nickname,u.account,us.type,us.name,us.mobile';
|
|
|
$lists = RechargeOrder::alias('ro')
|
|
|
->join('user u', 'u.id = ro.user_id')
|
|
|
+ ->join('user_service us', 'us.order_id = ro.id')
|
|
|
->field($field)
|
|
|
->where($this->queryWhere())
|
|
|
->where($this->searchWhere)
|
|
|
@@ -121,6 +122,17 @@ class RechargeLists extends BaseAdminDataLists implements ListsSearchInterface,
|
|
|
foreach ($lists as &$item) {
|
|
|
$item['avatar'] = FileService::getFileUrl($item['avatar']);
|
|
|
$item['pay_time'] = empty($item['pay_time']) ? '' : date('Y-m-d H:i:s', $item['pay_time']);
|
|
|
+ switch ($item['type']){
|
|
|
+ case 1:
|
|
|
+ $item['type_desc'] = '农机手';
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ $item['type_desc'] = '烘干';
|
|
|
+ break;
|
|
|
+ case 3:
|
|
|
+ $item['type_desc'] = '飞防';
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
return $lists;
|