zhanglinxin 1 år sedan
förälder
incheckning
823a327ba8

+ 14 - 0
application/api/controller/Approve.php

@@ -19,6 +19,20 @@ class Approve extends Base
     }
 
     /**
+     * 审批待处理统计
+     *
+     * @Apidoc\Method("POST")
+     * @Apidoc\Returned("module", type="integer", desc="模块类型:1=申购申请,2=呈批申请,3=入库申请,4=领用申请,5=出差申请,6=请假申请,7=用车申请,8=维修申请,9=合同呈批,10=收文批阅,11=学校文件")
+     * @Apidoc\Returned("module_text", type="string", desc="模块类型描述")
+     * @Apidoc\Returned("number", type="integer", desc="待处理数量")
+     **/
+    public function get_count(){
+        $user = $this->user;
+        $data = ApproveService::get_count($user);
+        $this->success('审批待处理统计', $data);
+    }
+
+    /**
      * 审批列表
      *
      * @Apidoc\Method("POST")

+ 0 - 2
application/api/controller/Common.php

@@ -9,8 +9,6 @@ use app\common\constant\EvectionConstant;
 use app\common\constant\LeaveConstant;
 use app\common\constant\MaintainConstant;
 use app\common\constant\OfferConstant;
-use app\common\model\Product;
-use app\common\model\UserLog;
 use hg\apidoc\annotation as Apidoc;
 use PhpOffice\PhpSpreadsheet\Cell\Coordinate;
 use PhpOffice\PhpSpreadsheet\Reader\Csv;

+ 0 - 16
application/api/controller/Member.php

@@ -3,7 +3,6 @@
 namespace app\api\controller;
 
 use app\common\model\Department;
-use app\common\service\ApproveService;
 use hg\apidoc\annotation as Apidoc;
 
 /**
@@ -108,19 +107,4 @@ class Member extends Base
         $this->success('编辑成功');
     }
 
-    /**
-     * 审批待处理统计
-     *
-     * @Apidoc\Method("POST")
-     * @Apidoc\Returned("module", type="integer", desc="模块类型:1=申购申请,2=呈批申请,3=入库申请,4=领用申请,5=出差申请,6=请假申请,7=用车申请,8=维修申请,9=合同呈批,10=收文批阅,11=学校文件")
-     * @Apidoc\Returned("module_text", type="string", desc="模块类型描述")
-     * @Apidoc\Returned("number", type="integer", desc="待处理数量")
-     **/
-    public function get_count(){
-        $user = $this->user;
-        $data = ApproveService::get_count($user);
-        $this->success('审批待处理统计', $data);
-    }
 }
-
-