orgId= $orgId; } /** * Execute the job. * * @return void */ public function handle() { //获取企业id $firm_id = Firm::where('org_id',$this->orgId)->value('id'); if (empty($firm_id)){ dump('签章生成-找不到企业'); return; } $isSelect=RedisDataServer::creatServer()->getData('firmSeal_'.$firm_id); if($isSelect){ dump($firm_id.'签章信息已在生成中'); return; } RedisDataServer::creatServer()->setData('firmSeal_'.$firm_id,1); //获取企业内部使用签章列表 ESignFirmServer::creatServer()->internalAuthInfo($firm_id,$this->orgId); //查询是否有合同章 $sealItem=FirmSeal::where('firm_id',$firm_id)->where('seal_type','CONTRACT')->first(); if(empty($sealItem)){ //无合同印章执行创建流程 ESignFirmServer::creatServer()->createOrgsealsbyTemplate($firm_id,$this->orgId); } } }