|
@ -3098,11 +3098,17 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
//根据身份证计算年龄
|
|
|
for(Map<String,Object> outpatient :list){
|
|
|
String idcard = (String)outpatient.get("idcard");
|
|
|
String patient_id = (String)outpatient.get("patient_id");
|
|
|
outpatient.put("age",DateUtil.getAgeForIdcard(idcard));
|
|
|
|
|
|
String outpatient_id = (String)outpatient.get("id");
|
|
|
|
|
|
|
|
|
|
|
|
String isAlert = redisTemplate.opsForValue().get("patient_alert_"+patient_id);
|
|
|
if(StringUtils.isBlank(isAlert)){
|
|
|
outpatient.put("alert_tag",0);//已提醒
|
|
|
}else{
|
|
|
outpatient.put("alert_tag",1);//未提醒
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|