|
@ -390,7 +390,6 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
}else {
|
|
|
condition = "to_char(o.register_date ,'yyyy-MM-dd hh24:mi:ss' ) AS \"registerDate\",";
|
|
|
}
|
|
|
condition = "to_char(o.register_date ,'yyyy-MM-dd hh24:mi:ss' ) AS \"registerDate\",";
|
|
|
} else {
|
|
|
condition = "date_format(o.register_date ,'%Y-%m-%d %H:%i:%S' ) AS registerDate,";
|
|
|
}
|
|
@ -455,6 +454,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
|
|
|
}
|
|
|
sql += " AND o.outpatient_type != '2' ORDER BY o.create_time DESC ";
|
|
|
logger.info("sql="+sql);
|
|
|
List<Map<String, Object>> list = hibenateUtils.createSQLQuery(sql, params, page, size);
|
|
|
|
|
|
return MixEnvelop.getSuccessListWithPage(BaseHospitalRequestMapping.Prescription.api_success, list, page, size, count);
|
|
@ -4175,7 +4175,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
params.put("endTime", date);
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(orgCode)) {
|
|
|
sql += " AND h.org_code = :orgCode";
|
|
|
sql += " AND h.org_code =:orgCode";
|
|
|
params.put("orgCode", orgCode);
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(diseaseKey)) {
|
|
@ -4189,7 +4189,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
}
|
|
|
|
|
|
if (StringUtils.isNotBlank(dept)) {
|
|
|
sql += " AND h.dept_code = :dept ";
|
|
|
sql += " AND h.dept_code =:dept ";
|
|
|
params.put("dept", dept);
|
|
|
|
|
|
}
|