|
@ -211,7 +211,7 @@ public class SecurityMonitoringOrderService extends BaseJpaService<SecurityMonit
|
|
|
|
|
|
}
|
|
|
|
|
|
public JSONArray getSecurityOrderList(String doctor,String serverDoctor, String patient, String status, Integer page, Integer pageSize){
|
|
|
public JSONArray getSecurityOrderList(String doctor,String serverDoctor,String patientName, String patient, String status, Integer page, Integer pageSize){
|
|
|
String sql = " select p.id patientCode,p.name,p.sex,p.idcard,ord.id orderId,ord.number,ord.serve_desc,ord.create_time,ord.`status`,ord.doctor," +
|
|
|
"ord.doctor_name,ord.patient_phone,ord.conclusion_status from base_security_monitoring_order ord INNER JOIN base_patient p on p.id = ord.patient " +
|
|
|
"where 1=1 ";
|
|
@ -224,8 +224,11 @@ public class SecurityMonitoringOrderService extends BaseJpaService<SecurityMonit
|
|
|
if (StringUtils.isNotBlank(serverDoctor)){
|
|
|
sql +=" and ord.doctor = '"+serverDoctor+"' ";
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(patientName)){
|
|
|
sql+=" and (ord.patient_name like '%"+patientName+"%' or p.idcard='"+patientName+"') ";
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(patient)){
|
|
|
sql+=" and ord.patient_name= like '%"+patient+"%' or p.idcard='"+patient+"' ";
|
|
|
sql+=" and ord.patient='"+patient+"' ";
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(status)){
|
|
|
sql+=" and ord.status='"+Integer.parseInt(status)+"' ";
|