Explorar o código

Merge branch 'master' of http://git.huaml.com/zhh/huahuibao

林琦海 %!s(int64=5) %!d(string=hai) anos
pai
achega
37bc835597
Modificáronse 1 ficheiros con 20 adicións e 0 borrados
  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]);
+    }
+
+}