|
@ -333,6 +333,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
private PrescriptionLogDao prescriptionLogDao;
|
|
|
@Autowired
|
|
|
private HcyyEntranceService hcyyEntranceService;
|
|
|
@Autowired
|
|
|
private BasePatientMedicareCardDao patientMedicareCardDao;
|
|
|
|
|
|
public static String entranceUrl = "http://172.16.100.240:10023/xzzx/";
|
|
|
|
|
@ -1410,6 +1412,33 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
return systemMessageDO;
|
|
|
}
|
|
|
|
|
|
public JSONArray findPatientCardList(String patientId) throws Exception {
|
|
|
patientMedicareCardDao.deleteByPatientId(patientId);
|
|
|
net.sf.json.JSONArray array =findPatientCard(patientId);
|
|
|
for (int i=0;i<array.size();i++){
|
|
|
net.sf.json.JSONObject object = array.getJSONObject(i);
|
|
|
String cardType = object.getString("CARD_TYPE");
|
|
|
String cardNo = object.getString("CARD_NO");
|
|
|
String cardTypeName = object.getString("CARD_TYPE_NAME");
|
|
|
PatientMedicareCardDO patientMedicareCardDO = new PatientMedicareCardDO();
|
|
|
patientMedicareCardDO.setCode(cardNo);
|
|
|
patientMedicareCardDO.setParentType("A");
|
|
|
if (cardType.equalsIgnoreCase("2")){
|
|
|
patientMedicareCardDO.setType("A_01");
|
|
|
}else {
|
|
|
patientMedicareCardDO.setType("A_03");
|
|
|
}
|
|
|
patientMedicareCardDO.setPatientCode(patientId);
|
|
|
patientMedicareCardDO.setOrgCode("350211A1002");
|
|
|
patientMedicareCardDO.setCityCode("350200");
|
|
|
patientMedicareCardDO.setDel("1");
|
|
|
patientMedicareCardDO.setRemark(cardTypeName);
|
|
|
patientMedicareCardDao.save(patientMedicareCardDO);
|
|
|
}
|
|
|
return array;
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 获取卡记录
|
|
|
*
|
|
@ -4966,11 +4995,13 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
BusinessOrderDO businessOrderDO = businessOrderDao.selectByRelationCode(outPatientId);
|
|
|
try {
|
|
|
if (wxId.equalsIgnoreCase("xm_ykyy_wx")) {
|
|
|
businessOrderService.orderRefund(wxId, wlyyOutpatientDO.getConsumer(), businessOrderDO.getOrderNo(), businessOrderDO.getPayPrice(), description);
|
|
|
//眼科接诊时更新眼科通状态
|
|
|
if (!flag){
|
|
|
if (businessOrderDO!=null){
|
|
|
ykyyService.updateYktOrderStatus(businessOrderDO.getOrderNo(),"2");
|
|
|
if (businessOrderDO.getStatus()==1){
|
|
|
businessOrderService.orderRefund(wxId, wlyyOutpatientDO.getConsumer(), businessOrderDO.getOrderNo(), businessOrderDO.getPayPrice(), description);
|
|
|
//眼科接诊时更新眼科通状态
|
|
|
if (!flag){
|
|
|
if (businessOrderDO!=null){
|
|
|
ykyyService.updateYktOrderStatus(businessOrderDO.getOrderNo(),"2");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
} else if (wxId.equalsIgnoreCase("xm_zsyy_wx")) {
|
|
@ -4978,7 +5009,9 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
WlyyHospitalSysDictDO hospitalSysDictDO = hospitalSysDictDao.findById("isCloseRefund");
|
|
|
if (hospitalSysDictDO!=null&&hospitalSysDictDO.getDictValue().equalsIgnoreCase("1")){
|
|
|
try {
|
|
|
entranceService.hisRefund(outPatientId);
|
|
|
if (businessOrderDO.getStatus()==1){
|
|
|
entranceService.hisRefund(outPatientId);
|
|
|
}
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
}
|
|
@ -5114,26 +5147,48 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
msgUrl="/ims-wx/index.html#/returnVisit/record?outpatientId="+outpatientId;
|
|
|
} else if("patientCancel".equalsIgnoreCase(titelType)) {
|
|
|
WlyyHospitalSysDictDO hospitalSysDictDO = hospitalSysDictDao.findById("isCloseRefund");
|
|
|
if (hospitalSysDictDO!=null){
|
|
|
if (hospitalSysDictDO.getDictValue().equalsIgnoreCase("1")){
|
|
|
if ("9".equals(type)) {
|
|
|
contentMsg = "您发起的图文复诊已被您取消。已支付的18元将原路退回,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的图文复诊已被您取消,您可重新发起";
|
|
|
}
|
|
|
if ("16".equals(type)) {
|
|
|
contentMsg = "您发起的视频复诊已被您取消。已支付的18元将原路退回,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的视频复诊已被您取消,您可重新发起";
|
|
|
}
|
|
|
if ("1".equals(type)) {
|
|
|
contentMsg = "您发起的图文咨询已被您取消。已支付的18元将原路退回,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的图文咨询已被您取消,您可重新发起";
|
|
|
}
|
|
|
if ("17".equals(type)) {
|
|
|
contentMsg = "您发起的视频咨询已被您取消。已支付的18元将原路退回,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的视频咨询已被您取消,您可重新发起";
|
|
|
}
|
|
|
if ("12".equals(type)) {
|
|
|
return;
|
|
|
if (outpatientDO.getPayStatus()==1){
|
|
|
if (hospitalSysDictDO!=null){
|
|
|
if (hospitalSysDictDO.getDictValue().equalsIgnoreCase("1")){
|
|
|
if ("9".equals(type)) {
|
|
|
contentMsg = "您发起的图文复诊已被您取消。已支付的18元将原路退回,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的图文复诊已被您取消,您可重新发起";
|
|
|
}
|
|
|
if ("16".equals(type)) {
|
|
|
contentMsg = "您发起的视频复诊已被您取消。已支付的18元将原路退回,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的视频复诊已被您取消,您可重新发起";
|
|
|
}
|
|
|
if ("1".equals(type)) {
|
|
|
contentMsg = "您发起的图文咨询已被您取消。已支付的18元将原路退回,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的图文咨询已被您取消,您可重新发起";
|
|
|
}
|
|
|
if ("17".equals(type)) {
|
|
|
contentMsg = "您发起的视频咨询已被您取消。已支付的18元将原路退回,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的视频咨询已被您取消,您可重新发起";
|
|
|
}
|
|
|
if ("12".equals(type)) {
|
|
|
return;
|
|
|
}
|
|
|
}else {
|
|
|
if ("9".equals(type)) {
|
|
|
contentMsg = "您发起的图文复诊已被您取消。请前往收费窗口进行退款,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的图文复诊已被您取消,您可重新发起";
|
|
|
}
|
|
|
if ("16".equals(type)) {
|
|
|
contentMsg = "您发起的视频复诊已被您取消。请前往收费窗口进行退款,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的视频复诊已被您取消,您可重新发起";
|
|
|
}
|
|
|
if ("1".equals(type)) {
|
|
|
contentMsg = "您发起的图文咨询已被您取消。请前往收费窗口进行退款,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的图文咨询已被您取消,您可重新发起";
|
|
|
}
|
|
|
if ("17".equals(type)) {
|
|
|
contentMsg = "您发起的视频咨询已被您取消。请前往收费窗口进行退款,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的视频咨询已被您取消,您可重新发起";
|
|
|
}
|
|
|
if ("12".equals(type)) {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
}else {
|
|
|
if ("9".equals(type)) {
|
|
@ -5158,19 +5213,19 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
}
|
|
|
}else {
|
|
|
if ("9".equals(type)) {
|
|
|
contentMsg = "您发起的图文复诊已被您取消。请前往收费窗口进行退款,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
contentMsg = "您发起的图文复诊已被您取消。如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的图文复诊已被您取消,您可重新发起";
|
|
|
}
|
|
|
if ("16".equals(type)) {
|
|
|
contentMsg = "您发起的视频复诊已被您取消。请前往收费窗口进行退款,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
contentMsg = "您发起的视频复诊已被您取消。如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的视频复诊已被您取消,您可重新发起";
|
|
|
}
|
|
|
if ("1".equals(type)) {
|
|
|
contentMsg = "您发起的图文咨询已被您取消。请前往收费窗口进行退款,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
contentMsg = "您发起的图文咨询已被您取消。如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的图文咨询已被您取消,您可重新发起";
|
|
|
}
|
|
|
if ("17".equals(type)) {
|
|
|
contentMsg = "您发起的视频咨询已被您取消。请前往收费窗口进行退款,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
contentMsg = "您发起的视频咨询已被您取消。如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的视频咨询已被您取消,您可重新发起";
|
|
|
}
|
|
|
if ("12".equals(type)) {
|
|
@ -5183,15 +5238,26 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
}else if("systemCancelRemind".equalsIgnoreCase(titelType)){
|
|
|
//超过24小时未接诊,系统取消
|
|
|
WlyyHospitalSysDictDO hospitalSysDictDO = hospitalSysDictDao.findById("isCloseRefund");
|
|
|
if (hospitalSysDictDO!=null){
|
|
|
if (hospitalSysDictDO.getDictValue().equalsIgnoreCase("1")){
|
|
|
if ("9".equals(type)) {
|
|
|
contentMsg = "您发起的图文复诊已取消,已支付的18元将原路退回,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的图文复诊因超过24小时未接诊已自动取消图文咨询。";
|
|
|
}
|
|
|
if ("16".equals(type)) {
|
|
|
contentMsg = "您发起的视频复诊已取消,已支付的18元将原路退回,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的视频复诊因超过24小时未接诊已自动取消视频咨询。";
|
|
|
if (outpatientDO.getPayStatus()==1){
|
|
|
if (hospitalSysDictDO!=null){
|
|
|
if (hospitalSysDictDO.getDictValue().equalsIgnoreCase("1")){
|
|
|
if ("9".equals(type)) {
|
|
|
contentMsg = "您发起的图文复诊已取消,已支付的18元将原路退回,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的图文复诊因超过24小时未接诊已自动取消图文咨询。";
|
|
|
}
|
|
|
if ("16".equals(type)) {
|
|
|
contentMsg = "您发起的视频复诊已取消,已支付的18元将原路退回,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的视频复诊因超过24小时未接诊已自动取消视频咨询。";
|
|
|
}
|
|
|
}else {
|
|
|
if ("9".equals(type)) {
|
|
|
contentMsg = "您发起的图文复诊已取消,请前往收费窗口进行退款,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的图文复诊因超过24小时未接诊已自动取消图文咨询。";
|
|
|
}
|
|
|
if ("16".equals(type)) {
|
|
|
contentMsg = "您发起的视频复诊已取消,请前往收费窗口进行退款,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的视频复诊因超过24小时未接诊已自动取消视频咨询。";
|
|
|
}
|
|
|
}
|
|
|
}else {
|
|
|
if ("9".equals(type)) {
|
|
@ -5205,15 +5271,16 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
}
|
|
|
}else {
|
|
|
if ("9".equals(type)) {
|
|
|
contentMsg = "您发起的图文复诊已取消,请前往收费窗口进行退款,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
contentMsg = "您发起的图文复诊已取消,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的图文复诊因超过24小时未接诊已自动取消图文咨询。";
|
|
|
}
|
|
|
if ("16".equals(type)) {
|
|
|
contentMsg = "您发起的视频复诊已取消,请前往收费窗口进行退款,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
contentMsg = "您发起的视频复诊已取消,如有问诊需求,可重新发起或到医院门急诊就诊。";
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的视频复诊因超过24小时未接诊已自动取消视频咨询。";
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
logger.info("系统取消接诊入参:outpatientId="+outpatientId);
|
|
|
msgUrl="/ims-wx/index.html#/returnVisit/record?outpatientId="+outpatientId;
|
|
|
} else if ("payRemind".equalsIgnoreCase(titelType)) {
|
|
@ -12607,10 +12674,24 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
String mobile1 = patientDO.getMobile();
|
|
|
String url = "https://hlwyy.xmzsh.com/hlwyy/ims-wx/#/nucleicTest/detail?id=" + baseNatAppointmentDO.getId();
|
|
|
String date = DateUtil.dateToStrLong(baseNatAppointmentDO.getAppointmentTime());
|
|
|
WlyyHospitalSysDictDO hospitalSysDictDO1 = wlyyHospitalSysDictDao.findById("natConfigTestNew");
|
|
|
String addres = "我院五号楼北侧(急诊部后侧)";
|
|
|
String timeDes = "6-8小时";
|
|
|
if (hospitalSysDictDO1!=null){
|
|
|
com.alibaba.fastjson.JSONArray array1 = com.alibaba.fastjson.JSONArray.parseArray(hospitalSysDictDO1.getDictValue());
|
|
|
for (int i=0;i<array1.size();i++){
|
|
|
com.alibaba.fastjson.JSONObject object1 = array1.getJSONObject(i);
|
|
|
String chargeCode1 = object1.getString("chargeCode");
|
|
|
if (chargeCode.equalsIgnoreCase(chargeCode1)){
|
|
|
addres = "我院发热门诊";
|
|
|
timeDes = "2小时";
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
String first = "尊敬的用户" + baseNatAppointmentDO.getName() + ",您已完成线上自助核酸检测预约申请";
|
|
|
String contentMsg = "申请人:" + baseNatAppointmentDO.getName() + "\r\n 预约时间:" + date + " \r\n发票流水号:" + baseNatAppointmentDO.getRealOrder();
|
|
|
String remark = "1、请您持核酸预约申请信息和发票流水号、医保卡/就诊卡/电子健康卡,准时至我院五号楼北侧(急诊部后侧)核酸检测点领取标本试管窗口绑定检测。\r\n" +
|
|
|
"2、核酸检测标本采集6-8小时后出具报告。请关注厦门大学附属中山医院微信公众号查询;如需打印,请至厦门大学附属中山医院核酸检测点自助机打印。";
|
|
|
String remark = "1、请您持核酸预约申请信息和发票流水号、医保卡/就诊卡/电子健康卡,准时至"+addres+"核酸检测点领取标本试管窗口绑定检测。\r\n" +
|
|
|
"2、核酸检测标本采集"+timeDes+"后出具报告。请关注厦门大学附属中山医院微信公众号查询;如需打印,请至厦门大学附属中山医院核酸检测点自助机打印。";
|
|
|
String responseMsg = "";
|
|
|
responseMsg = entranceService.ehospitalNotice(
|
|
|
name1,
|
|
@ -13035,10 +13116,24 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
String responseMsg="";
|
|
|
String url="";
|
|
|
String date = DateUtil.dateToStrLong(baseNatAppointmentDO.getAppointmentTime());
|
|
|
WlyyHospitalSysDictDO hospitalSysDictDO1 = wlyyHospitalSysDictDao.findById("natConfigTestNew");
|
|
|
String addres = "我院五号楼北侧(急诊部后侧)";
|
|
|
String timeDes = "6-8小时";
|
|
|
if (hospitalSysDictDO1!=null){
|
|
|
com.alibaba.fastjson.JSONArray array1 = com.alibaba.fastjson.JSONArray.parseArray(hospitalSysDictDO1.getDictValue());
|
|
|
for (int i=0;i<array1.size();i++){
|
|
|
com.alibaba.fastjson.JSONObject object1 = array1.getJSONObject(i);
|
|
|
String chargeCode1 = object1.getString("chargeCode");
|
|
|
if (baseNatAppointmentDO.getChargeCode().equalsIgnoreCase(chargeCode1)){
|
|
|
addres = "我院发热门诊";
|
|
|
timeDes = "2小时";
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
String contentMsg="申请人:"+baseNatAppointmentDO.getName()+"\r\n预约时间:"+date;
|
|
|
String remark = "1、请于预约时间"+date+"前,携带医保卡/就诊卡/电子健康卡到院区自助机进行结算。\r\n" +
|
|
|
"2、结算完成后请您持核酸预约申请信息和发票流水号、医保卡/就诊卡/电子健康卡,准时至我院五号楼北侧(急诊部后侧)核酸检测点领取标本试管窗口绑定检测。\r\n" +
|
|
|
"3、核酸检测标本采集6-8小时后出具报告。请关注厦门大学附属中山医院微信公众号查询;如需打印,请至厦门大学附属中山医院核酸检测点自助机打印。";
|
|
|
"2、结算完成后请您持核酸预约申请信息和发票流水号、医保卡/就诊卡/电子健康卡,准时至"+addres+"核酸检测点领取标本试管窗口绑定检测。\r\n" +
|
|
|
"3、核酸检测标本采集"+timeDes+"后出具报告。请关注厦门大学附属中山医院微信公众号查询;如需打印,请至厦门大学附属中山医院核酸检测点自助机打印。";
|
|
|
if ("xm_zsyy_wx".equalsIgnoreCase(wechatId)) {
|
|
|
responseMsg = entranceService.ehospitalNotice(
|
|
|
baseNatAppointmentDO.getName(),
|
|
@ -13060,9 +13155,23 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
jsonObject.put("keyword1",DateUtil.getStringDate());
|
|
|
String date = DateUtil.dateToStrLong(baseNatAppointmentDO.getAppointmentTime());
|
|
|
jsonObject.put("keyword2","申请人:"+baseNatAppointmentDO.getName()+"\n预约时间:"+date);
|
|
|
WlyyHospitalSysDictDO hospitalSysDictDO1 = wlyyHospitalSysDictDao.findById("natConfigTestNew");
|
|
|
String addres = "我院五号楼北侧(急诊部后侧)";
|
|
|
String timeDes = "6-8小时";
|
|
|
if (hospitalSysDictDO1!=null){
|
|
|
com.alibaba.fastjson.JSONArray array1 = com.alibaba.fastjson.JSONArray.parseArray(hospitalSysDictDO1.getDictValue());
|
|
|
for (int i=0;i<array1.size();i++){
|
|
|
com.alibaba.fastjson.JSONObject object1 = array1.getJSONObject(i);
|
|
|
String chargeCode1 = object1.getString("chargeCode");
|
|
|
if (baseNatAppointmentDO.getChargeCode().equalsIgnoreCase(chargeCode1)){
|
|
|
addres = "我院发热门诊";
|
|
|
timeDes = "2小时";
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
String remark = "1、请于预约时间"+date+"前,携带医保卡/就诊卡/电子健康卡到院区自助机进行结算。\n" +
|
|
|
"2、结算完成后请您持核酸预约申请信息和发票流水号、医保卡/就诊卡/电子健康卡,准时至我院五号楼北侧(急诊部后侧)核酸检测点领取标本试管窗口绑定检测。\n" +
|
|
|
"3、核酸检测标本采集6-8小时后出具报告。请关注厦门大学附属中山医院微信公众号查询;如需打印,请至厦门大学附属中山医院核酸检测点自助机打印。";
|
|
|
"2、结算完成后请您持核酸预约申请信息和发票流水号、医保卡/就诊卡/电子健康卡,准时至"+addres+"核酸检测点领取标本试管窗口绑定检测。\n" +
|
|
|
"3、核酸检测标本采集"+timeDes+"后出具报告。请关注厦门大学附属中山医院微信公众号查询;如需打印,请至厦门大学附属中山医院核酸检测点自助机打印。";
|
|
|
jsonObject.put("remark",remark);
|
|
|
jsonObject.put("url","111111");
|
|
|
String url = "https://xmzsyyfwc.xmpbinfo.cn/weixin/1/notification/push/nucleictest";
|
|
@ -13187,6 +13296,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
"t.town_name as \"townName\"," +
|
|
|
"t.street_name as \"streetName\"," +
|
|
|
"t.address as \"address\"," +
|
|
|
"t.charge_code as \"chargeCode\"," +
|
|
|
"t.HOSPITAL_FLAG as \"hospitalFlag\"," +
|
|
|
"t.charge_amount as \"chargeAmount\"," ;
|
|
|
if ("xm_tasy_wx".equalsIgnoreCase(wechatId)){
|
|
@ -13461,7 +13571,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
}
|
|
|
|
|
|
|
|
|
public String sendAlipayMessage(String patientId,String code,String fee,String redirdctUrl,String reserverTime,String realorder) throws Exception {
|
|
|
public String sendAlipayMessage(String patientId,String code,String fee,String redirdctUrl,String reserverTime,String realorder,Integer id) throws Exception {
|
|
|
com.alibaba.fastjson.JSONObject jsonObject = new com.alibaba.fastjson.JSONObject();
|
|
|
/* ⽀付提醒通知:
|
|
|
code: 通知代码,⽀付提醒为“2” open_id:⽀付宝⽤户ID user_name: 姓名 order_id: 订单号
|
|
@ -13496,8 +13606,23 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
jsonObject.put("keyword2","申请人:"+patientDO.getName()+"\n" +
|
|
|
"预约时间:"+reserverTime+"\n" +
|
|
|
"发票流水号:"+realorder+"");
|
|
|
String remark = "1、请您持核酸预约申请信息和发票流水号、医保卡/就诊卡/电子健康卡,准时至我院五号楼北侧(急诊部后侧)核酸检测点领取标本试管窗口绑定检测。\n" +
|
|
|
"2、核酸检测标本采集6-8小时后出具报告。请关注厦门大学附属中山医院微信公众号查询;如需打印,请至厦门大学附属中山医院核酸检测点自助机打印。";
|
|
|
BaseNatAppointmentDO baseNatAppointmentDO = baseNatAppointmentDao.findOne(id);
|
|
|
WlyyHospitalSysDictDO hospitalSysDictDO1 = wlyyHospitalSysDictDao.findById("natConfigTestNew");
|
|
|
String addres = "我院五号楼北侧(急诊部后侧)";
|
|
|
String timeDes = "6-8小时";
|
|
|
if (hospitalSysDictDO1!=null){
|
|
|
com.alibaba.fastjson.JSONArray array1 = com.alibaba.fastjson.JSONArray.parseArray(hospitalSysDictDO1.getDictValue());
|
|
|
for (int i=0;i<array1.size();i++){
|
|
|
com.alibaba.fastjson.JSONObject object1 = array1.getJSONObject(i);
|
|
|
String chargeCode1 = object1.getString("chargeCode");
|
|
|
if (baseNatAppointmentDO.getChargeCode().equalsIgnoreCase(chargeCode1)){
|
|
|
addres = "我院发热门诊";
|
|
|
timeDes = "2小时";
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
String remark = "1、请您持核酸预约申请信息和发票流水号、医保卡/就诊卡/电子健康卡,准时至"+addres+"核酸检测点领取标本试管窗口绑定检测。\n" +
|
|
|
"2、核酸检测标本采集"+timeDes+"后出具报告。请关注厦门大学附属中山医院微信公众号查询;如需打印,请至厦门大学附属中山医院核酸检测点自助机打印。";
|
|
|
jsonObject.put("remark",remark);
|
|
|
jsonObject.put("url",redirdctUrl);
|
|
|
}
|