Jelajahi Sumber

续期列表

shish 2 tahun lalu
induk
melakukan
bb47beae1e
1 mengubah file dengan 6 tambahan dan 0 penghapusan
  1. 6 0
      app-pt/controllers/RenewController.php

+ 6 - 0
app-pt/controllers/RenewController.php

@@ -10,9 +10,15 @@ use Yii;
 class RenewController extends BaseController
 {
 
+    //续期列表 ssh 20240427
     public function actionList()
     {
         $where = [];
+        $get = Yii::$app->request->get();
+        $status = $get['status'] ?? -1;
+        if ($status > -1) {
+            $where['status'] = $status;
+        }
         $list = RenewClass::getRenewList($where);
         util::success($list);
     }