shish 3 anni fa
parent
commit
c7f9ab66d7
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  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()
     {