|
@ -838,21 +838,24 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
outpatientDO.setStatus("0");
|
|
|
outpatientDO.setCreateTime(new Date());
|
|
|
outpatientDO.setIdcard(patientDO.getIdcard());
|
|
|
outpatientDO.setOutpatientType("1");
|
|
|
outpatientDO.setCreateTime(new Date());
|
|
|
|
|
|
|
|
|
if (outpatientDO.getRegisterDate() == null) {
|
|
|
outpatientDO.setRegisterDate(new Date());
|
|
|
}
|
|
|
WlyyPrescriptionExpressageDO previous = checkOutPatientPre(outpatientDO.getPatient());
|
|
|
//2.物流信息
|
|
|
WlyyPrescriptionExpressageDO expressageDO = objectMapper.readValue(expressageJson, WlyyPrescriptionExpressageDO.class);
|
|
|
if (null!=previous.getId()&&previous.getOneselfPickupFlg()!=expressageDO.getOneselfPickupFlg()){
|
|
|
WlyyOutpatientDO wlyyOutpatientDO = new WlyyOutpatientDO();
|
|
|
wlyyOutpatientDO.setRemindCount(previous.getOneselfPickupFlg());
|
|
|
return wlyyOutpatientDO;
|
|
|
WlyyPrescriptionExpressageDO expressageDO = new WlyyPrescriptionExpressageDO();
|
|
|
if(!outpatientDO.getOutpatientType().equalsIgnoreCase("3")){
|
|
|
WlyyPrescriptionExpressageDO previous = checkOutPatientPre(outpatientDO.getPatient());
|
|
|
//2.物流信息
|
|
|
expressageDO = objectMapper.readValue(expressageJson, WlyyPrescriptionExpressageDO.class);
|
|
|
if (null!=previous.getId()&&previous.getOneselfPickupFlg()!=expressageDO.getOneselfPickupFlg()){
|
|
|
WlyyOutpatientDO wlyyOutpatientDO = new WlyyOutpatientDO();
|
|
|
wlyyOutpatientDO.setRemindCount(previous.getOneselfPickupFlg());
|
|
|
return wlyyOutpatientDO;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
WlyyOutpatientDO outpatient = outpatientDao.save(outpatientDO);
|
|
|
WlyyHospitalSysDictDO hospitalSysDictDO = hospitalSysDictDao.findById("WX_MONEY");
|
|
|
Double price = 0.0;
|
|
@ -867,8 +870,12 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
outpatientDO.setPayStatus(0);
|
|
|
}
|
|
|
|
|
|
if ("3".equalsIgnoreCase(outpatient.getOutpatientType())){
|
|
|
BusinessOrderDO businessOrderDO = businessOrderService.recharge(outpatient.getId(), "专家咨询费", "1", "专家咨询费", outpatient.getConsumer(), outpatient.getConsumerName(), outpatient.getDoctor(), price);
|
|
|
}else{
|
|
|
BusinessOrderDO businessOrderDO = businessOrderService.recharge(outpatient.getId(), "复诊-诊查费", "2", "复诊-诊查费", outpatient.getConsumer(), outpatient.getConsumerName(), outpatient.getDoctor(), price);
|
|
|
|
|
|
BusinessOrderDO businessOrderDO = businessOrderService.recharge(outpatient.getId(), "复诊-诊查费", "2", "复诊-诊查费", outpatient.getConsumer(), outpatient.getConsumerName(), outpatient.getDoctor(), price);
|
|
|
}
|
|
|
|
|
|
WlyyPatientRegisterTimeDO registerTimeDO = null;
|
|
|
WlyyPatientRegisterTimeDO wlyyPatientRegisterTimeDO =new WlyyPatientRegisterTimeDO();
|
|
@ -883,36 +890,37 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
} catch (Exception e) {
|
|
|
throw new RuntimeException("号源已经被预约,请选择其他号源");
|
|
|
}
|
|
|
|
|
|
if (0==expressageDO.getOneselfPickupFlg()){
|
|
|
if("xm_ykyy_wx".equalsIgnoreCase(wechatId)){
|
|
|
String drugCode= expressageDO.getHospitalCode()==null?"5550":expressageDO.getHospitalCode();
|
|
|
expressageDO.setHospitalCode(drugCode);
|
|
|
if (!outpatientDO.getOutpatientType().equalsIgnoreCase("3")){
|
|
|
if (0==expressageDO.getOneselfPickupFlg()){
|
|
|
if("xm_ykyy_wx".equalsIgnoreCase(wechatId)){
|
|
|
String drugCode= expressageDO.getHospitalCode()==null?"5550":expressageDO.getHospitalCode();
|
|
|
expressageDO.setHospitalCode(drugCode);
|
|
|
}
|
|
|
System.out.println("进入物流信息");
|
|
|
expressageDO.setDel(1);
|
|
|
expressageDO.setCreateTime(new Date());
|
|
|
expressageDO.setOutpatientId(outpatient.getId());
|
|
|
prescriptionExpressageDao.save(expressageDO);
|
|
|
}else {
|
|
|
System.out.println("写入自取信息");
|
|
|
String drugStoreCode = expressageDO.getHospitalCode();
|
|
|
BaseDrugStoreDO baseDrugStoreDO = baseDrugStoreDao.findDrugByid(drugStoreCode);
|
|
|
if (null!=baseDrugStoreDO){
|
|
|
expressageDO.setCityCode(baseDrugStoreDO.getCityCode());
|
|
|
expressageDO.setCityName(baseDrugStoreDO.getCityName());
|
|
|
expressageDO.setProvinceCode(baseDrugStoreDO.getProvinceCode());
|
|
|
expressageDO.setProvinceName(baseDrugStoreDO.getProvinceName());
|
|
|
expressageDO.setTownCode(baseDrugStoreDO.getTownCode());
|
|
|
expressageDO.setTownName(baseDrugStoreDO.getTownName());
|
|
|
expressageDO.setHospitalCode(baseDrugStoreDO.getDrugStoreCode());
|
|
|
expressageDO.setHospitalName(baseDrugStoreDO.getHospitalName());
|
|
|
expressageDO.setHospitalAddress(baseDrugStoreDO.getAddress());
|
|
|
}
|
|
|
expressageDO.setDel(1);
|
|
|
expressageDO.setCreateTime(new Date());
|
|
|
expressageDO.setOutpatientId(outpatient.getId());
|
|
|
prescriptionExpressageDao.save(expressageDO);
|
|
|
}
|
|
|
System.out.println("进入物流信息");
|
|
|
expressageDO.setDel(1);
|
|
|
expressageDO.setCreateTime(new Date());
|
|
|
expressageDO.setOutpatientId(outpatient.getId());
|
|
|
prescriptionExpressageDao.save(expressageDO);
|
|
|
}else {
|
|
|
System.out.println("写入自取信息");
|
|
|
String drugStoreCode = expressageDO.getHospitalCode();
|
|
|
BaseDrugStoreDO baseDrugStoreDO = baseDrugStoreDao.findDrugByid(drugStoreCode);
|
|
|
if (null!=baseDrugStoreDO){
|
|
|
expressageDO.setCityCode(baseDrugStoreDO.getCityCode());
|
|
|
expressageDO.setCityName(baseDrugStoreDO.getCityName());
|
|
|
expressageDO.setProvinceCode(baseDrugStoreDO.getProvinceCode());
|
|
|
expressageDO.setProvinceName(baseDrugStoreDO.getProvinceName());
|
|
|
expressageDO.setTownCode(baseDrugStoreDO.getTownCode());
|
|
|
expressageDO.setTownName(baseDrugStoreDO.getTownName());
|
|
|
expressageDO.setHospitalCode(baseDrugStoreDO.getDrugStoreCode());
|
|
|
expressageDO.setHospitalName(baseDrugStoreDO.getHospitalName());
|
|
|
expressageDO.setHospitalAddress(baseDrugStoreDO.getAddress());
|
|
|
}
|
|
|
expressageDO.setDel(1);
|
|
|
expressageDO.setCreateTime(new Date());
|
|
|
expressageDO.setOutpatientId(outpatient.getId());
|
|
|
prescriptionExpressageDao.save(expressageDO);
|
|
|
}
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")){
|
|
|
logger.info("心脏中心同步患者开始");
|
|
@ -1133,14 +1141,14 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
}
|
|
|
|
|
|
|
|
|
public Map<String, Object> checkOutpatient(String patient,String wxId,boolean flag) throws Exception {
|
|
|
public Map<String, Object> checkOutpatient(String patient,String wxId,boolean flag,String outpatientType) throws Exception {
|
|
|
//-1卡余额不足,,-2 存在未结束的诊断热 1成功
|
|
|
Map<String, Object> rs = new HashedMap();
|
|
|
//1.余额判断改到前端判断
|
|
|
//net.sf.json.JSONObject json = entranceService.qutpatientBalance(cardNo,demoFlag);
|
|
|
if (flag){
|
|
|
if (wxId.equalsIgnoreCase("xm_zsyy_wx")){
|
|
|
List<WlyyOutpatientDO> outpatientDOS = outpatientDao.findByPatientListByStatus(patient);
|
|
|
List<WlyyOutpatientDO> outpatientDOS = outpatientDao.findByPatientListByStatus(patient,outpatientType);
|
|
|
if (outpatientDOS!=null&&outpatientDOS.size()!=0){
|
|
|
WlyyOutpatientDO outpatientDO = outpatientDOS.get(0);
|
|
|
if (outpatientDO.getHisStatus()!=null){
|
|
@ -3850,16 +3858,30 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
data.put("gender", IdCardUtil.getSexForIdcard(wlyyOutpatientDO.getIdcard()));
|
|
|
data.put("question", wlyyOutpatientDO.getIcd10Name());
|
|
|
String msg = "";
|
|
|
if ("1".equalsIgnoreCase(wlyyOutpatientDO.getType())) {
|
|
|
data.put("type", "9");
|
|
|
msg += wlyyOutpatientDO.getPatientName() + ",您好! 您有一个图文复诊已被医生取消,取消原因:" + cancelValue + "。取消说明:" + cancelRemark + "。";
|
|
|
sendWxTemplateMsg(wechatId, wlyyOutpatientDO.getId(),null, "9", "doctorRefuseRemind", cancelRemark);
|
|
|
}
|
|
|
if ("2".equalsIgnoreCase(wlyyOutpatientDO.getType())) {
|
|
|
data.put("type", "16");
|
|
|
msg += wlyyOutpatientDO.getPatientName() + ",您好! 您有一个视频复诊已被医生取消,取消原因:" + cancelValue + "。取消说明:" + cancelRemark + "。";
|
|
|
sendWxTemplateMsg(wechatId, wlyyOutpatientDO.getId(),null, "16", "doctorRefuseRemind", cancelRemark);
|
|
|
if ("1".equalsIgnoreCase(wlyyOutpatientDO.getOutpatientType())||"2".equalsIgnoreCase(wlyyOutpatientDO.getOutpatientType())){
|
|
|
if ("1".equalsIgnoreCase(wlyyOutpatientDO.getType())) {
|
|
|
data.put("type", "9");
|
|
|
msg += wlyyOutpatientDO.getPatientName() + ",您好! 您有一个图文复诊已被医生取消,取消原因:" + cancelValue + "。取消说明:" + cancelRemark + "。";
|
|
|
sendWxTemplateMsg(wechatId, wlyyOutpatientDO.getId(),null, "9", "doctorRefuseRemind", cancelRemark);
|
|
|
}
|
|
|
if ("2".equalsIgnoreCase(wlyyOutpatientDO.getType())) {
|
|
|
data.put("type", "16");
|
|
|
msg += wlyyOutpatientDO.getPatientName() + ",您好! 您有一个视频复诊已被医生取消,取消原因:" + cancelValue + "。取消说明:" + cancelRemark + "。";
|
|
|
sendWxTemplateMsg(wechatId, wlyyOutpatientDO.getId(),null, "16", "doctorRefuseRemind", cancelRemark);
|
|
|
}
|
|
|
}else {
|
|
|
if ("1".equalsIgnoreCase(wlyyOutpatientDO.getType())) {
|
|
|
data.put("type", "1");
|
|
|
msg += wlyyOutpatientDO.getPatientName() + ",您好! 您有一个图文咨询已被医生取消,取消原因:" + cancelValue + "。取消说明:" + cancelRemark + "。";
|
|
|
sendWxTemplateMsg(wechatId, wlyyOutpatientDO.getId(),null, "1", "doctorRefuseRemind", cancelRemark);
|
|
|
}
|
|
|
if ("2".equalsIgnoreCase(wlyyOutpatientDO.getType())) {
|
|
|
data.put("type", "17");
|
|
|
msg += wlyyOutpatientDO.getPatientName() + ",您好! 您有一个视频咨询已被医生取消,取消原因:" + cancelValue + "。取消说明:" + cancelRemark + "。";
|
|
|
sendWxTemplateMsg(wechatId, wlyyOutpatientDO.getId(),null, "17", "doctorRefuseRemind", cancelRemark);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
data.put("msg", msg);
|
|
|
messageDO.setData(data.toString());
|
|
|
systemMessageService.saveMessage(messageDO);
|
|
@ -3956,6 +3978,14 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
contentMsg = "医生已取消您的复诊申请,取消原因:"+remindMsg;
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的视频复诊已取消";
|
|
|
}
|
|
|
if ("1".equals(type)) {
|
|
|
contentMsg = "医生已取消您的复诊申请,取消原因:"+remindMsg;
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的图文咨询已取消";
|
|
|
}
|
|
|
if ("17".equals(type)) {
|
|
|
contentMsg = "医生已取消您的复诊申请,取消原因:"+remindMsg;
|
|
|
first = outpatientDO.getConsumerName() + ",您好!您的视频咨询已取消";
|
|
|
}
|
|
|
logger.info("doctorRefuseRemind医生拒诊入参:outpatientId="+outpatientId);
|
|
|
msgUrl="/ims-wx/index.html#/returnVisit/record?outpatientId="+outpatientId;
|
|
|
} else if("outPatientTimeOutRemind".equalsIgnoreCase(titelType)) {
|
|
@ -4488,6 +4518,9 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
//协同门诊
|
|
|
if (3 == type) {
|
|
|
sql += " AND room.reservation_type=2 ";
|
|
|
} else if (4==type){
|
|
|
//专家咨询
|
|
|
sql += " AND room.reservation_type=2 AND room.consult_type in (1,2,3)";
|
|
|
} else {
|
|
|
//在线复诊
|
|
|
sql += " AND room.reservation_type=1 AND room.consult_type=" + type;
|
|
@ -5892,7 +5925,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
return waitCount.toString();
|
|
|
}
|
|
|
|
|
|
public com.alibaba.fastjson.JSONArray getWaitingForVisitVideoPrescriptionByDoctor(String doctor, String wxId) {
|
|
|
public com.alibaba.fastjson.JSONArray getWaitingForVisitVideoPrescriptionByDoctor(String doctor, String wxId,String outpatientType) {
|
|
|
String condition = "";
|
|
|
if ("xm_ykyy_wx".equals(wxId)) {
|
|
|
if(flag){
|
|
@ -5936,11 +5969,14 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
"AND outpatient.status = 0 " +
|
|
|
"AND outpatient.pay_status = 1 " +
|
|
|
"AND room.doctor='" + doctor + "' " +
|
|
|
"AND room.reservation_time is not null " +
|
|
|
"AND room.consult_type= 2 ";/* +
|
|
|
"AND room.reservation_time is not null ";/* +
|
|
|
"AND room.reservation_time >= '"+DateUtil.dateToStrShort(new Date())+" 00:00:00' order by room.reservation_time ASC ";
|
|
|
// "AND room.reservation_time>='"+DateUtil.getStringDate("yyyy-MM-dd")+" 00:00:00"+"' ";*/
|
|
|
|
|
|
if(StringUtils.isNotBlank(outpatientType)){
|
|
|
sql+=" AND outpatient.type= 2 and outpatient.outpatient_type ="+outpatientType;
|
|
|
}else {
|
|
|
sql+="AND room.consult_type= 2 ";
|
|
|
}
|
|
|
if ("xm_ykyy_wx".equals(wxId)) {
|
|
|
if(flag){
|
|
|
sql += " AND room.reservation_time >= str_to_date('" + DateUtil.dateToStrShort(new Date()) + " 00:00:00','YYYY-MM-DD HH24:MI:SS')";
|
|
@ -6310,7 +6346,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
"AND outpatient.doctor='" + doctor + "' " +
|
|
|
"AND outpatient.pay_status = 1 " +
|
|
|
"AND outpatient.outpatient_type= '" + outpatient_type + "' ";
|
|
|
if ("1".equals(outpatient_type)) {//复诊
|
|
|
if ("1".equals(outpatient_type)||"3".equals(outpatient_type)) {//复诊
|
|
|
sql = sql + " AND outpatient.type= '" + type + "' ";
|
|
|
if ("2".equals(type)) {//视频复诊才需要判断时间,
|
|
|
if ("xm_ykyy_wx".equals(wxId)) {
|
|
@ -6451,21 +6487,27 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
if ("2".equals(outpatient.getOutpatientType())) {
|
|
|
systemMessageDO.setTitle("协同门诊");
|
|
|
systemMessageDO.setType("3");
|
|
|
} else {
|
|
|
//1.图文 2.视频
|
|
|
} else if ("3".equals(outpatient.getOutpatientType())) {//专家咨询
|
|
|
//1.图文 2.视频 3家医
|
|
|
if ("1".equals(outpatient.getType())) {
|
|
|
systemMessageDO.setTitle("图文复诊");
|
|
|
systemMessageDO.setType("1");
|
|
|
systemMessageDO.setTitle("图文咨询");
|
|
|
systemMessageDO.setType("4");
|
|
|
if (payFlag){
|
|
|
saveInquirySystemMessage(outpatient,null);
|
|
|
}
|
|
|
} else {
|
|
|
systemMessageDO.setTitle("视频复诊预约成功");
|
|
|
} else if("3".equals(outpatient.getType())){
|
|
|
systemMessageDO.setTitle("家医咨询");
|
|
|
systemMessageDO.setType("15");
|
|
|
if (payFlag){
|
|
|
saveInquirySystemMessage(outpatient,null);
|
|
|
}
|
|
|
}else {
|
|
|
systemMessageDO.setTitle("视频咨询预约成功");
|
|
|
systemMessageDO.setType("2");
|
|
|
if (payFlag){
|
|
|
saveInquirySystemMessage(outpatient,null);
|
|
|
}
|
|
|
msg = "您的视频复诊已预约成功。\n" +
|
|
|
msg = "您的视频咨询已预约成功。\n" +
|
|
|
"预计" + outpatient.getDoctorName() + "医生将于" + outpatient.getRegisterDate() + " 与您进行视频咨询。请留意系统消息或微信公众号消息。咨询开始时,医生将邀请您进行视频通话,请您关注消息提醒,及时接受医生视频邀请。";
|
|
|
systemMessageDO.setReceiver(outpatient.getDoctor());
|
|
|
systemMessageDO.setReceiverName(outpatient.getDoctorName());
|
|
@ -6484,7 +6526,40 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
systemMessageService.saveMessage(systemMessageDO);
|
|
|
sendWxTemplateMsg(wechatId, outpatient.getId(),null, "17", "videoOrderRemind", "");
|
|
|
}
|
|
|
}
|
|
|
} else if ("1".equals(outpatient.getOutpatientType())) {//在线复诊
|
|
|
//1.图文 2.视频
|
|
|
if ("1".equals(outpatient.getType())) {
|
|
|
systemMessageDO.setTitle("图文复诊");
|
|
|
systemMessageDO.setType("1");
|
|
|
if (payFlag){
|
|
|
saveInquirySystemMessage(outpatient,null);
|
|
|
}
|
|
|
} else {
|
|
|
systemMessageDO.setTitle("视频复诊预约成功");
|
|
|
systemMessageDO.setType("2");
|
|
|
if (payFlag){
|
|
|
saveInquirySystemMessage(outpatient,null);
|
|
|
}
|
|
|
msg = "您的视频复诊已预约成功。\n" +
|
|
|
"预计" + outpatient.getDoctorName() + "医生将于" + outpatient.getRegisterDate() + " 与您进行视频咨询。请留意系统消息或微信公众号消息。咨询开始时,医生将邀请您进行视频通话,请您关注消息提醒,及时接受医生视频邀请。";
|
|
|
systemMessageDO.setReceiver(outpatient.getDoctor());
|
|
|
systemMessageDO.setReceiverName(outpatient.getDoctorName());
|
|
|
systemMessageDO.setRelationCode(outpatient.getId());
|
|
|
systemMessageDO.setSender(outpatient.getPatient());
|
|
|
systemMessageDO.setSenderName(outpatient.getPatientName());
|
|
|
systemMessageDO.setRelationCode(outpatient.getId());
|
|
|
|
|
|
|
|
|
data.put("name", outpatient.getPatientName());
|
|
|
data.put("age", IdCardUtil.getAgeForIdcard(outpatient.getIdcard()));
|
|
|
data.put("gender", IdCardUtil.getSexForIdcard_new(outpatient.getIdcard()));
|
|
|
data.put("question", outpatient.getDescription());
|
|
|
data.put("msg", msg);
|
|
|
systemMessageDO.setData(data.toString());
|
|
|
systemMessageService.saveMessage(systemMessageDO);
|
|
|
sendWxTemplateMsg(wechatId, outpatient.getId(),null, "17", "videoOrderRemind", "");
|
|
|
}
|
|
|
}
|
|
|
BasePatientDO patient = basePatientDao.findById(outpatient.getPatient());
|
|
|
if ("xm_ykyy_wx".equalsIgnoreCase(wechatId)) {
|
|
|
ykyyService.pushNotificationToYktPatient(patient.getYktId(), systemMessageDO.getTitle(), data.get("msg").toString());
|
|
@ -6505,14 +6580,23 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
systemMessageDO.setType("11");
|
|
|
JSONObject data = new JSONObject();
|
|
|
if (outpatient!=null){
|
|
|
if ("1".equals(outpatient.getType())) {
|
|
|
type = "9";
|
|
|
msg = outpatient.getPatientName() + ",您好!您有一个图文复诊订单待支付,请及时支付。点击完成支付,如您已支付请忽略本条信息。";
|
|
|
} else if ("2".equals(outpatient.getType())){
|
|
|
type = "16";
|
|
|
msg = outpatient.getPatientName() + ",您好!您有一个视频复诊订单待支付,请及时支付。点击完成支付,如您已支付请忽略本条信息。";
|
|
|
if("1"==outpatient.getOutpatientType()){
|
|
|
if ("1".equals(outpatient.getType())) {
|
|
|
type = "9";
|
|
|
msg = outpatient.getPatientName() + ",您好!您有一个图文复诊订单待支付,请及时支付。点击完成支付,如您已支付请忽略本条信息。";
|
|
|
} else if ("2".equals(outpatient.getType())){
|
|
|
type = "16";
|
|
|
msg = outpatient.getPatientName() + ",您好!您有一个视频复诊订单待支付,请及时支付。点击完成支付,如您已支付请忽略本条信息。";
|
|
|
}
|
|
|
}else if ("3"==outpatient.getOutpatientType()){
|
|
|
if ("1".equals(outpatient.getType())) {
|
|
|
type = "1";
|
|
|
msg = outpatient.getPatientName() + ",您好!您有一个图文咨询订单待支付,请及时支付。点击完成支付,如您已支付请忽略本条信息。";
|
|
|
} else if ("2".equals(outpatient.getType())){
|
|
|
type = "17";
|
|
|
msg = outpatient.getPatientName() + ",您好!您有一个视频咨询订单待支付,请及时支付。点击完成支付,如您已支付请忽略本条信息。";
|
|
|
}
|
|
|
}
|
|
|
|
|
|
systemMessageDO.setSender(outpatient.getDoctor());
|
|
|
systemMessageDO.setSenderName(outpatient.getDoctorName());
|
|
|
systemMessageDO.setRelationCode(outpatient.getId());
|