|
|
@@ -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]);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|