合并分支 'workorder' 到 'master'
v6wechat_group_id 查看合并请求 !2285
正在显示
1 个修改的文件
包含
5 行增加
和
0 行删除
| @@ -5,6 +5,7 @@ namespace App\Console\Commands\WorkOrder; | @@ -5,6 +5,7 @@ namespace App\Console\Commands\WorkOrder; | ||
| 5 | use App\Models\Manage\Manage; | 5 | use App\Models\Manage\Manage; |
| 6 | use App\Models\Manage\ManageHr; | 6 | use App\Models\Manage\ManageHr; |
| 7 | use App\Models\Project\Project; | 7 | use App\Models\Project\Project; |
| 8 | +use App\Models\ProjectAssociation\ProjectAssociation; | ||
| 8 | use App\Models\WorkOrder\TicketProject; | 9 | use App\Models\WorkOrder\TicketProject; |
| 9 | use Illuminate\Console\Command; | 10 | use Illuminate\Console\Command; |
| 10 | use Illuminate\Support\Facades\Http; | 11 | use Illuminate\Support\Facades\Http; |
| @@ -180,6 +181,10 @@ class FetchTicketProjects extends Command | @@ -180,6 +181,10 @@ class FetchTicketProjects extends Command | ||
| 180 | 'version' => empty($item->version) ? 7 : $item->version, // 版本号 | 181 | 'version' => empty($item->version) ? 7 : $item->version, // 版本号 |
| 181 | 'plan' => $item->planMap()[$item->deploy_build->plan] ?? '', | 182 | 'plan' => $item->planMap()[$item->deploy_build->plan] ?? '', |
| 182 | 'project_cate' => 2, | 183 | 'project_cate' => 2, |
| 184 | + 'wechat_group_id' => ProjectAssociation::where('project_id', $project->table_id) | ||
| 185 | + ->where('status', ProjectAssociation::STATUS_NORMAL) | ||
| 186 | + ->where('binding_app', ProjectAssociation::ENTERPRISE_WECHAT) | ||
| 187 | + ->value('friend_id') | ||
| 183 | ]; | 188 | ]; |
| 184 | if (!$project) { | 189 | if (!$project) { |
| 185 | $project = new TicketProject(); | 190 | $project = new TicketProject(); |
-
请 注册 或 登录 后发表评论