shish vor 2 Jahren
Ursprung
Commit
4df5422f22
2 geänderte Dateien mit 18 neuen und 0 gelöschten Zeilen
  1. 8 0
      app-ghs/controllers/ModifyController.php
  2. 10 0
      biz-ghs/modify/classes/ModifyClass.php

+ 8 - 0
app-ghs/controllers/ModifyController.php

@@ -12,6 +12,14 @@ class ModifyController extends BaseController
 
     public $guestAccess = [];
 
+    public function actionList()
+    {
+        $where = [];
+        $where['mainId'] = $this->mainId;
+        $respond = ModifyClass::getModifyList($where);
+        util::success($respond);
+    }
+
     //添加修改记录 ssh 20240502
     public function actionAdd()
     {

+ 10 - 0
biz-ghs/modify/classes/ModifyClass.php

@@ -10,4 +10,14 @@ class ModifyClass extends BaseClass
 
     public static $baseFile = '\bizGhs\modify\models\Modify';
 
+    public static function getModifyList($where)
+    {
+        $data = self::getList('*', $where, 'inTurn DESC,addTime DESC');
+        $list = isset($data['list']) && !empty($data['list']) ? $data['list'] : [];
+        if (empty($list)) {
+            return $data;
+        }
+        return $data;
+    }
+
 }