Browse Source

计算候诊居民,增加过滤时间

huangwenjie 5 years ago
parent
commit
9e44d9e046

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

@ -3244,7 +3244,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
                "AND room.outpatient_id=outpatient.id " +
                "AND room.outpatient_id=outpatient.id " +
                "AND outpatient.status = 0 " +
                "AND outpatient.status = 0 " +
                "AND room.doctor='"+doctor+"' " +
                "AND room.doctor='"+doctor+"' " +
                "AND room.reservation_time is not null " +
                "AND room.reservation_time is not null AND  room.reservation_time >= '"+DateUtil.dateToStrShort(new Date())+" 00:00:00'" +
                "AND room.consult_type= 2 ";
                "AND room.consult_type= 2 ";
    
    
        List<Map<String, Object>> rstotal = jdbcTemplate.queryForList(sql);
        List<Map<String, Object>> rstotal = jdbcTemplate.queryForList(sql);