|
@@ -221,7 +221,7 @@ class Reciveremote extends Base
|
|
|
$where3 = "(`ra`.`remote_doctor_id`= ? or `ra`.`remote_doctor_id` = '')";
|
|
|
$where4 = "(`ro`.`status` is null or `ro`.`status` = 2 or `ro`.`status` = 3)";
|
|
|
$order = "(`ra`.`is_urgent` = '1' and `ra`.`report_status` = '4') desc, (`ra`.`is_urgent` = '1' and `ra`.`report_status` = '6') desc, (`ra`.`is_urgent` = '1' and `ra`.`report_status` = '7'), `ra`.`req_date_time` desc";
|
|
|
- $limit = "? ?";
|
|
|
+ $limit = "?, ?";
|
|
|
|
|
|
$where = $where1." and ".$where2." and ".$where3." and ".$where4;
|
|
|
$sql = "select ".$filed." from ".$table." where ".$where." order by ".$order." limit ".$limit;
|