|
...
|
...
|
@@ -5,6 +5,7 @@ namespace App\Console\Commands\WorkOrder; |
|
|
|
use App\Models\Manage\Manage;
|
|
|
|
use App\Models\Manage\ManageHr;
|
|
|
|
use App\Models\Project\Project;
|
|
|
|
use App\Models\ProjectAssociation\ProjectAssociation;
|
|
|
|
use App\Models\WorkOrder\TicketProject;
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
use Illuminate\Support\Facades\Http;
|
|
...
|
...
|
@@ -180,6 +181,10 @@ class FetchTicketProjects extends Command |
|
|
|
'version' => empty($item->version) ? 7 : $item->version, // 版本号
|
|
|
|
'plan' => $item->planMap()[$item->deploy_build->plan] ?? '',
|
|
|
|
'project_cate' => 2,
|
|
|
|
'wechat_group_id' => ProjectAssociation::where('project_id', $project->table_id)
|
|
|
|
->where('status', ProjectAssociation::STATUS_NORMAL)
|
|
|
|
->where('binding_app', ProjectAssociation::ENTERPRISE_WECHAT)
|
|
|
|
->value('friend_id')
|
|
|
|
];
|
|
|
|
if (!$project) {
|
|
|
|
$project = new TicketProject();
|
...
|
...
|
|