|
@@ -464,7 +464,6 @@ class Writereport extends Base
|
|
|
return json_encode(['status'=>'fail','code'=>'1034','msg'=>'已经确认过该报告,不可再次确认']);
|
|
|
}
|
|
|
}else{
|
|
|
- Message::read($doctor['id'],$report_info['remote_application_id'],4);
|
|
|
//远程
|
|
|
$status = DB::table('remote_application')->where('id',$report_info['remote_application_id'])->field('remote_doctor_id,report_status')->find();
|
|
|
if($status['report_status'] < 8 ){
|
|
@@ -1128,7 +1127,7 @@ class Writereport extends Base
|
|
|
**/
|
|
|
public function get_report_list(){
|
|
|
$sessionid = $_REQUEST['sessionid'];
|
|
|
- // $doctor = Cache::get($sessionid);
|
|
|
+ $doctor = Cache::get($sessionid);
|
|
|
$param = $_REQUEST['param'];
|
|
|
$rinfo = DB::table('report')->where('exam_id',$param['id'])->where('type','<>',1)->select();
|
|
|
$pinfo = DB::table('patient_infos')->where('temp_patient_id',$param['pid'])->field('name,temp_patient_id,sex,age,phone')->find();
|
|
@@ -1137,6 +1136,7 @@ class Writereport extends Base
|
|
|
$arr = array();
|
|
|
foreach ($rinfo as $k => $v) {
|
|
|
$remote_info = DB::table('remote_application')->where('id',$v['remote_application_id'])->find();
|
|
|
+ Message::read($doctor['id'],$remote_info['remote_application_id'],4);
|
|
|
if($remote_info['report_status'] == 8 || $remote_info['report_status'] == 9){
|
|
|
$arr = $v;
|
|
|
$remote_did = DB::table('doctors')->where('id',$v['report_doctor_id'])->field('realname')->find();
|