|
@@ -687,6 +687,10 @@ class Application extends Base
|
|
|
{
|
|
|
try{
|
|
|
$ra_id = $_REQUEST['ra_id'];
|
|
|
+ $status = DB::table('remote_application')->where('id',$ra_id)->value('report_status');
|
|
|
+ if($status != 4){
|
|
|
+ return json_encode(['status'=>'fail','code'=>'0410','msg'=>'只能分配未经处理的报告']);
|
|
|
+ }
|
|
|
$did = $_REQUEST['did'];
|
|
|
$info = DB::table('remote_application')->where('id',$ra_id)->update(['remote_doctor_id'=>$did]);
|
|
|
return json_encode(['status'=>'ok','code'=>'0000','info'=>$info]);
|