|
@ -462,7 +462,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
" FROM " +
|
|
" FROM " +
|
|
" wlyy_outpatient o " +
|
|
" wlyy_outpatient o " +
|
|
" WHERE " +
|
|
" WHERE " +
|
|
" o.patient =:patient ";
|
|
|
|
|
|
" o.consumer =:patient ";
|
|
Map<String, Object> params = new HashedMap();
|
|
Map<String, Object> params = new HashedMap();
|
|
params.put("patient", patient);
|
|
params.put("patient", patient);
|
|
if (status != null) {
|
|
if (status != null) {
|
|
@ -3803,7 +3803,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
if ("xm_ykyy_wx".equalsIgnoreCase(wxId)) {
|
|
if ("xm_ykyy_wx".equalsIgnoreCase(wxId)) {
|
|
List<BasePatientWechatDo> ps = new ArrayList<BasePatientWechatDo>();
|
|
List<BasePatientWechatDo> ps = new ArrayList<BasePatientWechatDo>();
|
|
if (StringUtils.isNotEmpty(outpatientId)){
|
|
if (StringUtils.isNotEmpty(outpatientId)){
|
|
ps = basePatientWechatDao.findByWechatIdAndPatientId(wxId, outpatientDO.getPatient());
|
|
|
|
|
|
ps = basePatientWechatDao.findByWechatIdAndPatientId(wxId, outpatientDO.getConsumer());
|
|
}
|
|
}
|
|
if (consultTeam!=null){
|
|
if (consultTeam!=null){
|
|
ps = basePatientWechatDao.findByWechatIdAndPatientId(wxId, consultTeam.getPatient());
|
|
ps = basePatientWechatDao.findByWechatIdAndPatientId(wxId, consultTeam.getPatient());
|
|
@ -4164,7 +4164,9 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
"patient.photo AS \"photo\"," +
|
|
"patient.photo AS \"photo\"," +
|
|
"outpatient.mobile AS \"mobile\"," +
|
|
"outpatient.mobile AS \"mobile\"," +
|
|
"patient.birthday AS \"birthday\"," +
|
|
"patient.birthday AS \"birthday\"," +
|
|
"room.consult_type AS \"consult_type\",";
|
|
|
|
|
|
"room.consult_type AS \"consult_type\"," +
|
|
|
|
"outpatient.consumer as \"consumer\", " +
|
|
|
|
"outpatient.consumer_name as \"consumerName\",";
|
|
if ("xm_ykyy_wx".equals(wechatId)) {
|
|
if ("xm_ykyy_wx".equals(wechatId)) {
|
|
if(flag){
|
|
if(flag){
|
|
sql += "date_format(room.reservation_time ,'yyyy-MM-dd hh24:mi:ss' ) AS \"timedate_format\",";
|
|
sql += "date_format(room.reservation_time ,'yyyy-MM-dd hh24:mi:ss' ) AS \"timedate_format\",";
|
|
@ -5537,7 +5539,9 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
"room.reservation_type AS \"reservation_type\"," +
|
|
"room.reservation_type AS \"reservation_type\"," +
|
|
"outpatient.disease_img AS \"disease_img\"," +
|
|
"outpatient.disease_img AS \"disease_img\"," +
|
|
"outpatient.description AS \"description\"," +
|
|
"outpatient.description AS \"description\"," +
|
|
"outpatient.origin_con_no AS \"origin_con_no\", " +
|
|
|
|
|
|
"outpatient.origin_con_no AS \"origin_con_no\"," +
|
|
|
|
"outpatient.consumer as \"consumer\"," +
|
|
|
|
"outpatient.consumer_name as \"consumer_name\", " +
|
|
"room.reservation_type AS \"reservation_type\" " +
|
|
"room.reservation_type AS \"reservation_type\" " +
|
|
"FROM " +
|
|
"FROM " +
|
|
"wlyy_hospital_waiting_room room," +
|
|
"wlyy_hospital_waiting_room room," +
|
|
@ -7232,7 +7236,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
if (map.get("code").toString().equalsIgnoreCase("1")) {
|
|
if (map.get("code").toString().equalsIgnoreCase("1")) {
|
|
// * @param applyDepaName @param applyDoctorName
|
|
// * @param applyDepaName @param applyDoctorName
|
|
WlyyPrescriptionDO prescriptionDO = prescriptionDao.findOne(prescriptionId);
|
|
WlyyPrescriptionDO prescriptionDO = prescriptionDao.findOne(prescriptionId);
|
|
String patientCode = prescriptionDO.getPatientCode();
|
|
|
|
|
|
String patientCode = outpatientDO.getConsumer();
|
|
String realerOrder = prescriptionDO.getRealOrder();
|
|
String realerOrder = prescriptionDO.getRealOrder();
|
|
|
|
|
|
String recipeTime = DateUtil.dateToStr(prescriptionDO.getCreateTime(), "yyyyMMddHHmmss");
|
|
String recipeTime = DateUtil.dateToStr(prescriptionDO.getCreateTime(), "yyyyMMddHHmmss");
|