|
@ -933,7 +933,7 @@ public class WlyyFamilyMemberService extends BaseJpaService<WlyyPatientFamilyMem
|
|
|
public List<Map<String,Object>> findFamilyByPatientId(String patientId) throws ParseException {
|
|
|
if("xm_ykyy_wx".equalsIgnoreCase(wxId)){
|
|
|
String sql = "select t.id as \"id\",t.card_type as \"cardType\", " +
|
|
|
"t.patient as \"patient\",b.name as \"name\",b.sex as \"sex\","+
|
|
|
"t.patient as \"patient\",b.name as \"name\",b.sex as \"sex\",b.mobile as \"mobile\","+
|
|
|
"to_char(b.birthday,'yyyy-MM-dd') as\"birthday\",b.idcard as \"idcard\",t.clinicid as \"clinicid\"," +
|
|
|
"t.family_member as \"familyMember\",c.relation_name as \"relationName\" "+
|
|
|
" from wlyy_patient_family_member t left join base_patient b" +
|
|
@ -967,7 +967,7 @@ public class WlyyFamilyMemberService extends BaseJpaService<WlyyPatientFamilyMem
|
|
|
}else {
|
|
|
String sql = "select t.id as \"id\",t.card_type as \"cardType\", " +
|
|
|
"t.patient as \"patient\",b.name as \"name\",b.sex as \"sex\","+
|
|
|
"b.birthday as\"birthday\",b.idcard as \"idcard\",b.mobile," +
|
|
|
"b.birthday as\"birthday\",b.idcard as \"idcard\",b.mobile as \"mobile\"," +
|
|
|
"t.family_member as \"familyMember\",c.relation_name as \"relationName\" "+
|
|
|
" from wlyy_patient_family_member t left join base_patient b" +
|
|
|
" on t.family_member = b.id left join base_patient_member_dict c on t.family_relation=c.id where 1=1 and t.is_del=1 ";
|