修改首页我的一生,新增患者问诊取消消息推送

This commit is contained in:
wucongxing 2023-04-18 10:33:15 +08:00
parent 762f812517
commit fde2f44766
5 changed files with 20 additions and 17 deletions

View File

@ -115,7 +115,7 @@ class UserDoctorController extends AbstractController
* 新增绑定医生银行卡
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
* @throws NotFoundExceptionInterface|GuzzleException
*/
public function addDoctorBankCard(): ResponseInterface
{

View File

@ -40,11 +40,6 @@ class PatientHistoryInquiry extends Model
*/
protected array $fillable = ['history_inquiry_id', 'patient_id', 'doctor_id', 'pharmacist_id', 'order_inquiry_id', 'history_status', 'created_at', 'updated_at'];
/**
* The attributes that should be cast to native types.
*/
protected array $casts = ['history_inquiry_id' => 'integer', 'patient_id' => 'integer', 'doctor_id' => 'integer', 'pharmacist_id' => 'integer', 'order_inquiry_id' => 'integer', 'history_status' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
protected string $primaryKey = "history_inquiry_id";
/**

View File

@ -1939,7 +1939,7 @@ class MessagePush extends BaseService
$data['notice_type'] = 1;
$data['inquiry_type'] = $this->order_inquiry['inquiry_type']; // 问诊类型(医生端服务通知存在 1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药)
$data['from_name'] = "肝胆小秘书";
$data['notice_brief_title'] = inquiryTypeToString($this->order_inquiry['inquiry_type']);
$data['notice_brief_title'] = "患者已取消问诊咨询。";
$data['notice_title'] = "患者已取消问诊咨询。";
$data['notice_content'] = "患者已取消问诊咨询,您可选择其他患者的问诊咨询进行接诊。";
$data['link_type'] = 3; // 问诊消息列表页

View File

@ -744,15 +744,9 @@ class PatientDoctorService extends BaseService
continue;
}
if (count($results) > 5){
// 超出5个
continue;
}
// 检测是否重复,如果重复,删除最早的一个数据
foreach ($results as $key => $result){
if ($patient_history_doctor['doctor_id'] == $result['doctor_id']){
unset($results[$key]);
foreach ($results as $item){
if ($patient_history_doctor['doctor_id'] == $item['doctor_id']){
continue 2;
}
}
@ -781,7 +775,7 @@ class PatientDoctorService extends BaseService
}
}
$results = array_merge($results);
return $results;
}
}

View File

@ -28,6 +28,7 @@ use App\Model\OrderPrescriptionIcd;
use App\Model\OrderPrescriptionProduct;
use App\Model\OrderProductItem;
use App\Model\PatientHistoryInquiry;
use App\Model\Popup;
use App\Model\Product;
use App\Model\ProductPlatformAmount;
use App\Model\SystemInquiryConfig;
@ -317,6 +318,19 @@ class UserDoctorService extends BaseService
$data['is_bind_bank'] = 1;
UserDoctor::editUserDoctor($params, $data);
// 新增弹窗表
$data = array();
$data['user_id'] = $user_info['user_id'];
$data['app_type'] = 1;
$data['client_type'] = 2;
$data['popup_type'] = 1;
$data['popup_link'] = ""; // 跳转地址
$popup = Popup::addPopup($data);
if (empty($popup)){
Db::rollBack();
return fail(HttpEnumCode::SERVER_ERROR);
}
Db::commit();
} catch (\Exception $e) {
Db::rollBack();