|
@ -7813,8 +7813,17 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
"patient.photo AS \"photo\"," +
|
|
|
"patient.birthday AS \"birthday\"," +
|
|
|
"patient.mobile AS \"mobile\"," +
|
|
|
"room.consult_type AS \"consult_type\"," + "room.reservation_time as \"time\", " +
|
|
|
"room.reservation_type AS \"reservation_type\"," +
|
|
|
"room.consult_type AS \"consult_type\",";
|
|
|
if ("xm_ykyy_wx".equals(wxId)) {
|
|
|
if (flag) {
|
|
|
sql = sql + "date_format(room.reservation_time,'%Y-%m-%d %H:%i:%S' ) AS \"time\",";
|
|
|
} else {
|
|
|
sql = sql + "to_char(room.reservation_time,'YYYY-MM-DD hh24:mi:ss') AS \"time\",";
|
|
|
}
|
|
|
} else {
|
|
|
sql = sql + "date_format(room.reservation_time,'%Y-%m-%d %H:%i:%S' ) AS \"time\",";
|
|
|
}
|
|
|
sql+= "room.reservation_type AS \"reservation_type\"," +
|
|
|
"outpatient.disease_img AS \"disease_img\"," +
|
|
|
"outpatient.description AS \"description\"," +
|
|
|
"outpatient.origin_con_no AS \"origin_con_no\", " +
|
|
@ -7841,7 +7850,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
} else {
|
|
|
}
|
|
|
|
|
|
|
|
|
logger.info("sql==="+sql);
|
|
|
List<Map<String, Object>> list = jdbcTemplate.queryForList(sql);
|
|
|
if (list != null && list.size() > 0) {
|
|
|
//根据身份证计算年龄
|