|
@ -36,10 +36,9 @@ public class OnlineContactService extends BaseJpaService<BasePatientDO, BasePati
|
|
String jsSql = "SELECT p.*,pfm.family_relation familyRelation,p.archive_type\n" +
|
|
String jsSql = "SELECT p.*,pfm.family_relation familyRelation,p.archive_type\n" +
|
|
"FROM base_patient_family_member pfm,base_patient p\n" +
|
|
"FROM base_patient_family_member pfm,base_patient p\n" +
|
|
"WHERE pfm.del = 1 AND pfm.family_member = p.id AND p.patient_status = 1 AND pfm.patient = '"+patient+"'";
|
|
"WHERE pfm.del = 1 AND pfm.family_member = p.id AND p.patient_status = 1 AND pfm.patient = '"+patient+"'";
|
|
String fwzSql = "SELECT o.* \n" +
|
|
|
|
"FROM base_doctor_hospital dh,base_org o,base_service_package_sign_record spsr\n" +
|
|
|
|
"WHERE dh.del = 1 AND o.del = 1 AND spsr.`status` = 1 AND spsr.sign_doctor = dh.doctor_code\n" +
|
|
|
|
"AND dh.org_code = o.`code` AND spsr.patient = '"+patient+"' GROUP BY o.`code`";
|
|
|
|
|
|
String fwzSql = "SELECT org.* from base_service_package_sign_record sr,base_service_package_record r,base_team_member m,base_org org \n" +
|
|
|
|
"WHERE sr.status=1 and m.team_code = r.team_code and m.org_code = org.code and sr.id=r.sign_id \n" +
|
|
|
|
"and sr.patient='"+patient+"' and m.del = '1' ";
|
|
List<Map<String,Object>> zlyList = jdbcTemplate.queryForList(zlySql);
|
|
List<Map<String,Object>> zlyList = jdbcTemplate.queryForList(zlySql);
|
|
List<Map<String,Object>> jsList = jdbcTemplate.queryForList(jsSql);
|
|
List<Map<String,Object>> jsList = jdbcTemplate.queryForList(jsSql);
|
|
List<Map<String,Object>> fwzList = jdbcTemplate.queryForList(fwzSql);
|
|
List<Map<String,Object>> fwzList = jdbcTemplate.queryForList(fwzSql);
|