This commit is contained in:
wucongxing8150 2024-03-01 11:46:44 +08:00
parent caf1a6b922
commit 825eb7b859
2 changed files with 17 additions and 13 deletions

View File

@ -0,0 +1,14 @@
<?php
namespace App\Services;
/**
* 问诊配置
*/
class InquiryConfigService extends BaseService
{
public function get()
{
}
}

View File

@ -895,19 +895,9 @@ class InquiryService extends BaseService
$follow = false; // 关注状态
$is_evaluation = false; // 评价状态
// 获取医生问诊配置-问诊购药
$multi_point_enable = 0;
$params = array();
$params['doctor_id'] = $user_doctor['doctor_id'];
$params['inquiry_type'] = 4;
$params['inquiry_mode'] = 1;
$doctor_inquiry_config = DoctorInquiryConfig::getOne($params);
if (!empty($doctor_inquiry_config)) {
if ($doctor_inquiry_config['is_enable'] == 1) {
$multi_point_enable = 1;// 是否开启问诊购药
}
}
// 处理可处方字段
$userDoctorService = new UserDoctorService();
$multi_point_enable = $userDoctorService->getDoctorMultiPointEnable($user_doctor["doctor_id"]);
if ($user_info['user_type'] == 1) {
// 关注状态