处理职业、民族
This commit is contained in:
parent
ed83d333dc
commit
f85ef3801f
@ -3,6 +3,8 @@
|
||||
namespace App\Services;
|
||||
|
||||
use App\Constants\HttpEnumCode;
|
||||
use App\Model\BasicJob;
|
||||
use App\Model\BasicNation;
|
||||
use App\Model\DetectionProject;
|
||||
use App\Model\InquiryCaseProduct;
|
||||
use App\Model\OrderDetection;
|
||||
@ -564,6 +566,32 @@ class PatientCaseService extends BaseService
|
||||
if ($order_inquiry_case[$key] == null){
|
||||
$order_inquiry_case_data[$key] = $value;
|
||||
}
|
||||
|
||||
// 处理职业
|
||||
if ($key == "job_id"){
|
||||
if ($order_inquiry_case["job_name"] == null){
|
||||
// 获取职业数据
|
||||
$params = array();
|
||||
$params['job_id'] = $value;
|
||||
$basic_job = BasicJob::getOne($params);
|
||||
if (!empty($basic_job)){
|
||||
$order_inquiry_case_data["job_name"] = $basic_job['job_name'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 处理民族
|
||||
if ($key == "nation_id"){
|
||||
if ($order_inquiry_case["nation_name"] == null){
|
||||
// 获取职业数据
|
||||
$params = array();
|
||||
$params['nation_id'] = $value;
|
||||
$basic_nation = BasicNation::getOne($params);
|
||||
if (!empty($basic_nation)){
|
||||
$order_inquiry_case_data["nation_name"] = $basic_nation['nation_name'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$case_fields[$key] = $value;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user