修改药师开具处方
This commit is contained in:
parent
d4473c259a
commit
0dc712d8e1
@ -39,6 +39,7 @@ use App\Model\SystemInquiryTime;
|
|||||||
use App\Model\User;
|
use App\Model\User;
|
||||||
use App\Model\UserDoctor;
|
use App\Model\UserDoctor;
|
||||||
use App\Model\UserDoctorInfo;
|
use App\Model\UserDoctorInfo;
|
||||||
|
use App\Model\UserPharmacist;
|
||||||
use App\Utils\Log;
|
use App\Utils\Log;
|
||||||
use App\Utils\Mask;
|
use App\Utils\Mask;
|
||||||
use Extend\Alibaba\Oss;
|
use Extend\Alibaba\Oss;
|
||||||
@ -1445,9 +1446,17 @@ class UserDoctorService extends BaseService
|
|||||||
return fail(HttpEnumCode::SERVER_ERROR, "处方开具失败");
|
return fail(HttpEnumCode::SERVER_ERROR, "处方开具失败");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取药师数据
|
||||||
|
$params = array();
|
||||||
|
$user_pharmacist = UserPharmacist::getOne($params);
|
||||||
|
if (empty($user_pharmacist)){
|
||||||
|
Db::rollBack();
|
||||||
|
return fail(HttpEnumCode::SERVER_ERROR, "处方开具失败");
|
||||||
|
}
|
||||||
|
|
||||||
// 修改处方表
|
// 修改处方表
|
||||||
$data = array();
|
$data = array();
|
||||||
$data['pharmacist_id'] = "534534546"; // 药师id 现固定为此用户,后续可以考虑开启队列
|
$data['pharmacist_id'] = $user_pharmacist['pharmacist_id']; // 药师id 现固定为此用户,后续可以考虑开启队列
|
||||||
$data['is_auto_phar_verify'] = $system_config['is_auto_phar_verify_prescription'];// 是否药师自动审核(0:否 1:是)
|
$data['is_auto_phar_verify'] = $system_config['is_auto_phar_verify_prescription'];// 是否药师自动审核(0:否 1:是)
|
||||||
$data['doctor_created_time'] = date('Y-m-d H:i:s',time());
|
$data['doctor_created_time'] = date('Y-m-d H:i:s',time());
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user