diff --git a/app/controller/api/v1/Manager.php b/app/controller/api/v1/Manager.php index 2327703..3ac0856 100644 --- a/app/controller/api/v1/Manager.php +++ b/app/controller/api/v1/Manager.php @@ -629,7 +629,7 @@ class Manager extends Base $res['total'] = $total; if ($total > 0) { - $res['list'] = $query->field('pml.id,pml.status,pml.amount,pml.base_amount,pml.overtime_amount,pml.paid_amount,a.real_name as name')->page($page, $size)->order('pml.id', 'desc')->select(); + $res['list'] = $query->field('pml.id,pml.status,pml.amount,pml.base_amount,pml.overtime_amount,pml.paid_amount,a.real_name as name,pml.year,pml.month')->page($page, $size)->order('pml.id', 'desc')->select(); $res['list']->each(function ($item) { $item->status = 0; $item->status_text = '待发放'; @@ -643,6 +643,10 @@ class Manager extends Base $item->status_text = '部分发放'; $item->status = 2; } + + $item->date = $item->year.'年'.$item->month.'月'; + unset($item->year); + unset($item->month); }); }