Browse Source

修复导诊台电话号码为空的BUG

huangwenjie 5 years ago
parent
commit
412a36a459

+ 6 - 0
business/base-service/src/main/java/com/yihu/jw/hospital/prescription/service/PrescriptionService.java

@ -2375,6 +2375,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
                "patient.sex AS sex," +
                "patient.idcard AS idcard," +
                "patient.photo AS photo," +
                "outpatient.photo AS outpatient_photo," +
                "patient.birthday AS birthday," +
                "room.consult_type AS consult_type," +
                "date_format(room.reservation_time ,'%Y-%m-%d %H:%i:%S' ) AS timedate_format," +
@ -2424,6 +2425,11 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
            for(Map<String,Object> outpatient :list){
                String idcard = (String)outpatient.get("idcard");
                outpatient.put("age",DateUtil.getAgeForIdcard(idcard));
    
                String outpatient_photo = (String)outpatient.get("outpatient_photo");
                if(StringUtils.isNoneBlank(outpatient_photo)){
                    outpatient.put("phone",outpatient_photo);
                }
            }
        }