|
|
@@ -13,6 +13,8 @@ namespace App\Services\Common;
|
|
|
|
|
|
use App\Models\ActionLogModel;
|
|
|
use App\Models\MeetingModel;
|
|
|
+use App\Models\StoreModel;
|
|
|
+use App\Models\SupervisorsModel;
|
|
|
use App\Services\BaseService;
|
|
|
use App\Services\MpService;
|
|
|
use App\Services\RedisService;
|
|
|
@@ -89,6 +91,18 @@ class MeetingService extends BaseService
|
|
|
$cityName = isset($city['name'])?$city['name']:'';
|
|
|
$districtName = isset($district['name'])?$district['name']:'';
|
|
|
$item['area'] = $cityName.'/'.$districtName;
|
|
|
+ if($item['store_ids']){
|
|
|
+ $item['stores'] = StoreModel::whereIn('id', $item['store_ids'])
|
|
|
+ ->select(['id','nickname','mobile'])
|
|
|
+ ->get();
|
|
|
+ }
|
|
|
+
|
|
|
+ $item['supervisors'] = [];
|
|
|
+ if($item['supervisor_ids']){
|
|
|
+ $item['supervisors'] = SupervisorsModel::whereIn('id', $item['supervisor_ids'])
|
|
|
+ ->select(['id','name','mobile'])
|
|
|
+ ->get();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|