Browse Source

部门审核检查雏形

sugangqiang 2 years ago
parent
commit
8fac0aa9a0
2 changed files with 35 additions and 0 deletions
  1. 34 0
      app/command/DeptVerifyChecker.php
  2. 1 0
      config/console.php

+ 34 - 0
app/command/DeptVerifyChecker.php

@@ -0,0 +1,34 @@
+<?php
+
+declare (strict_types=1);
+
+namespace app\command;
+
+use think\console\Command;
+use think\console\Input;
+use think\console\input\Argument;
+use think\console\input\Option;
+use think\console\Output;
+use think\facade\Db;
+use think\facade\Log;
+
+/**
+ * 人才认定部门审核检查
+ */
+class DeptVerifyChecker extends Command {
+
+    protected function configure() {
+        // 指令配置
+        $this->setName('RegisterMessenger')
+                ->setDescription('Auto send msg');
+    }
+
+    protected function execute(Input $input, Output $output) {
+        \app\common\api\VerifyApi::getDeptList($params);
+        $where = [];
+        $where[] = ["checkState", "=", \app\common\api\TalentState::FST_VERIFY_PASS];
+        $where[] = ["pass_dept_check", "=", 0];
+        Db::table()->where($where)->select();
+    }
+
+}

+ 1 - 0
config/console.php

@@ -8,5 +8,6 @@ return [
     'commands' => [
         "Solver" => "app\command\Solver",
         "RegisterMessenger" => "app\command\RegisterMessenger", //注册短信提醒后台审核
+        "DeptVerifyChecker" => "app\command\DeptVerifyChecker", //人才认定部门审核阶段检查
     ],
 ];