|
@ -3621,8 +3621,16 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
logger.info("XZZX_Msg_" + titelType + "=" + responseMsg);
|
|
|
|
|
|
} else if ("xm_zsyy_wx".equalsIgnoreCase(wxId)) {
|
|
|
String MsgUrl = "https://hlwyy.xmzsh.com/ims-wx/index.html#/returnVisit/record?outpatientId=" + outpatientDO.getPatient();
|
|
|
String responseMsg = entranceService.ehospitalNotice(patientDO.getName(),
|
|
|
String MsgUrl ="";
|
|
|
if(StringUtils.isNotEmpty(outpatientId)){
|
|
|
MsgUrl = "https://hlwyy.xmzsh.com/ims-wx/index.html#/returnVisit/record?outpatientId=" + outpatientDO.getPatient();
|
|
|
}
|
|
|
if (consPatientDO!=null){
|
|
|
MsgUrl = "https://hlwyy.xmzsh.com/ims-wx/index.html#/returnVisit/record?outpatientId=" + consPatientDO.getName();
|
|
|
}
|
|
|
|
|
|
String responseMsg = entranceService.ehospitalNotice(
|
|
|
patientDO.getName(),
|
|
|
patientDO.getIdcard(),
|
|
|
patientDO.getMobile(),
|
|
|
first,
|
|
@ -7137,20 +7145,26 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
"\t) \n" +
|
|
|
"WHERE\n" +
|
|
|
"\tROWNUM >= " + (page - 1) * size;
|
|
|
logger.info("oracleSql=" + oracleSql);
|
|
|
list = jdbcTemplate.query(oracleSql, new BeanPropertyRowMapper<>(WlyyPrescriptionVO.class));
|
|
|
if (flag){
|
|
|
sql.append(" limit ").append((page - 1) * size).append(",").append(size);
|
|
|
logger.info("MySql=" + sql.toString());
|
|
|
list = jdbcTemplate.query(sql.toString(), new BeanPropertyRowMapper<>(WlyyPrescriptionVO.class));
|
|
|
}else {
|
|
|
logger.info("oracleSql=" + oracleSql);
|
|
|
list = jdbcTemplate.query(oracleSql, new BeanPropertyRowMapper<>(WlyyPrescriptionVO.class));
|
|
|
}
|
|
|
} else {
|
|
|
// sql+=" LIMIT " + (page - 1) * size + "," + size + "";
|
|
|
sql.append(" limit ").append((page - 1) * size).append(",").append(size);
|
|
|
logger.info("MySql=" + sql.toString());
|
|
|
list = jdbcTemplate.query(sql.toString(), new BeanPropertyRowMapper<>(WlyyPrescriptionVO.class));
|
|
|
}
|
|
|
|
|
|
|
|
|
// List<WlyyPrescriptionVO> list = jdbcTemplate.query(sql.toString(), new BeanPropertyRowMapper<>(WlyyPrescriptionVO.class));
|
|
|
logger.info("countSql=" + countSql.toString());
|
|
|
List<Map<String, Object>> mapList = jdbcTemplate.queryForList(countSql.toString());
|
|
|
long count = Long.parseLong(mapList.get(0).get("count").toString());
|
|
|
logger.info("sql=" + sql.toString());
|
|
|
logger.info("countSql=" + countSql.toString());
|
|
|
return PageEnvelop.getSuccessListWithPage(IotRequestMapping.Common.message_success_find, list, page, size, count);
|
|
|
}
|
|
|
|