shish 5 سال پیش
والد
کامیت
49697ef1fb
1فایلهای تغییر یافته به همراه20 افزوده شده و 0 حذف شده
  1. 20 0
      app-ghs/controllers/UnitController.php

+ 20 - 0
app-ghs/controllers/UnitController.php

@@ -0,0 +1,20 @@
+<?php
+
+namespace ghs\controllers;
+
+use biz\item\classes\UnitClass;
+use common\components\util;
+use Yii;
+
+class UnitController extends BaseController
+{
+
+    //取所有的单位 shish 2021.4.10
+    public function actionGetAllUnit()
+    {
+        $where = [];
+        $list = UnitClass::getAllList(['id', 'name'], $where);
+        util::success(['list' => $list]);
+    }
+
+}