获取医生每日最大接诊数量、检测是否可以接诊、创建问诊订单

This commit is contained in:
2024-04-10 11:46:18 +08:00
parent 6a71abffa9
commit c4a6e7cee3
3 changed files with 246 additions and 233 deletions
+8 -5
View File
@@ -165,11 +165,14 @@ class InquiryService extends BaseService
}
}
// 检测当前是否符合系统问诊时间
$inquiryService = new InquiryService();
$is_system_time_pass = $inquiryService->checkSystemInquiryTime($request_params['inquiry_type']);
if (!$is_system_time_pass && $request_params['inquiry_type'] == 4) {
return fail(HttpEnumCode::HTTP_ERROR, "当前非医生接诊时间");
// 问诊购药
if ($request_params['inquiry_type'] == 4){
// 检测当前是否符合系统问诊时间
$inquiryService = new InquiryService();
$is_system_time_pass = $inquiryService->checkSystemInquiryTime($request_params['inquiry_type']);
if (!$is_system_time_pass) {
return fail(HttpEnumCode::HTTP_ERROR, "当前非医生接诊时间");
}
}
// 定义优惠卷金额默认值