shish 3 лет назад
Родитель
Сommit
c7f9ab66d7
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      app-ghs/controllers/LabelController.php

+ 7 - 0
app-ghs/controllers/LabelController.php

@@ -9,6 +9,13 @@ use Yii;
 class LabelController extends BaseController
 {
 
+    //清空所有标签 ssh 20230821
+    public function actionClearAll()
+    {
+        $sql = "delete from xhLabel";
+        Yii::$app->db->createCommand($sql)->execute();
+    }
+
     //批量添加电子标 ssh 20230821
     public function actionBatchAddLabel()
     {