|
|
@@ -19,6 +19,7 @@ use app\common\model\master_worker\MasterWorker;
|
|
|
use app\common\logic\BaseLogic;
|
|
|
use app\common\model\master_worker\MasterWorkerScore;
|
|
|
use app\common\model\master_worker\MasterWorkerRetentionMoneyLog;
|
|
|
+use app\common\model\master_worker_credential\MasterWorkerCredentialImages;
|
|
|
use app\common\model\service_area\ServiceArea;
|
|
|
use think\db\Query;
|
|
|
use think\facade\Config;
|
|
|
@@ -219,7 +220,7 @@ class MasterWorkerLogic extends BaseLogic
|
|
|
$info = MasterWorker::with(['workerInfo'=>function(Query $query){
|
|
|
$query->field('worker_id,real_name,id_card,id_card_front_img,id_card_opposite_img,mobile,address');
|
|
|
},'workerRegister'=>function(Query $query){
|
|
|
- $query->field('worker_id,maintain_exp_type,other_exp_type,city,vehicle_type,name,age,mobile')->append(['maintain_exp_type_text','other_exp_type_text','vehicle_type_text','city_text']);
|
|
|
+ $query->field('id as worker_register_id,worker_id,maintain_exp_type,other_exp_type,city,vehicle_type,name,age,mobile')->append(['maintain_exp_type_text','other_exp_type_text','vehicle_type_text','city_text']);
|
|
|
}])
|
|
|
->append(['time_period'])
|
|
|
->findOrEmpty($params['id'])->toArray();
|
|
|
@@ -232,6 +233,8 @@ class MasterWorkerLogic extends BaseLogic
|
|
|
$info['is_up_retention_pay'] = 1;
|
|
|
}
|
|
|
$info['score'] = MasterWorkerScore::where(['worker_id' => $params['id']])->field('comprehensive_score,weight_score')->findOrEmpty()->toArray();
|
|
|
+ $images = MasterWorkerCredentialImages::where(['worker_register_id' => $info['workerRegister']['worker_register_id']])->select()->toArray();
|
|
|
+ $info['credential_info'] = $images;
|
|
|
return $info;
|
|
|
}
|
|
|
|