DeptVerifyChecker.php 824 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. declare (strict_types=1);
  3. namespace app\command;
  4. use think\console\Command;
  5. use think\console\Input;
  6. use think\console\input\Argument;
  7. use think\console\input\Option;
  8. use think\console\Output;
  9. use think\facade\Db;
  10. use think\facade\Log;
  11. /**
  12. * 人才认定部门审核检查
  13. */
  14. class DeptVerifyChecker extends Command {
  15. protected function configure() {
  16. // 指令配置
  17. $this->setName('RegisterMessenger')
  18. ->setDescription('Auto send msg');
  19. }
  20. protected function execute(Input $input, Output $output) {
  21. \app\common\api\VerifyApi::getDeptList($params);
  22. $where = [];
  23. $where[] = ["checkState", "=", \app\common\api\TalentState::FST_VERIFY_PASS];
  24. $where[] = ["pass_dept_check", "=", 0];
  25. Db::table()->where($where)->select();
  26. }
  27. }