|
@ -79,7 +79,7 @@ public class DoctorSchemeService {
|
|
|
sql = sql + " LEFT JOIN wlyy_patient_device dev on dev.user = p.code ";
|
|
|
}
|
|
|
|
|
|
sql = sql+ " JOIN wlyy_sign_family sf on sf.patient = p.code where sf.admin_team_code = "+teamCode;
|
|
|
sql = sql+ " LEFT wlyy_sign_family sf on sf.patient = p.code where sf.admin_team_code = "+teamCode;
|
|
|
|
|
|
if(-1 != disease){
|
|
|
sql = sql + " and (p.disease ="+disease+" or p.disease = 3) ";
|
|
@ -103,7 +103,7 @@ public class DoctorSchemeService {
|
|
|
|
|
|
sql = sql + " and (sf.doctor = '"+doctorcode+"' or sf.doctor_health ='"+doctorcode+"')";
|
|
|
|
|
|
sql = sql + " and p.status > 0 and p.disease > 0 ";
|
|
|
sql = sql + " and p.status > 0 and p.disease > 0 and sf.status > 0 ";
|
|
|
|
|
|
List<String> result = jdbcTemplate.queryForList(sql,new Object[]{},String.class);
|
|
|
|