|  | @ -4158,20 +4158,22 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
												
													
														
															|  |             }
 |  |             }
 | 
												
													
														
															|  |             if ("1".equals(type)) {
 |  |             if ("1".equals(type)) {
 | 
												
													
														
															|  |                 contentMsg = "您有一个图文咨询订单待支付,点击完成支付,如您已支付请忽略本条信息";
 |  |                 contentMsg = "您有一个图文咨询订单待支付,点击完成支付,如您已支付请忽略本条信息";
 | 
												
													
														
															|  |                 first = consPatientDO.getName() + ",您好!您有一个图文咨询订单待支付,请及时支付。";
 |  | 
 | 
												
													
														
															|  |                 if (StringUtils.isNotBlank(outpatientId)){
 |  |                 if (StringUtils.isNotBlank(outpatientId)){
 | 
												
													
														
															|  |                     msgUrl="/ims-wx/index.html#/returnVisit/record?outpatientId="+outpatientId;
 |  |                     msgUrl="/ims-wx/index.html#/returnVisit/record?outpatientId="+outpatientId;
 | 
												
													
														
															|  | 
 |  |                     first = outpatientDO.getConsumerName() + ",您好!您有一个图文咨询订单待支付,请及时支付。";
 | 
												
													
														
															|  |                 }else{
 |  |                 }else{
 | 
												
													
														
															|  |                     msgUrl="/ims-wx/index.html#/chatRoom?type=1&consultCode="+consultTeam.getConsult();
 |  |                     msgUrl="/ims-wx/index.html#/chatRoom?type=1&consultCode="+consultTeam.getConsult();
 | 
												
													
														
															|  | 
 |  |                     first = consPatientDO.getName() + ",您好!您有一个图文咨询订单待支付,请及时支付。";
 | 
												
													
														
															|  |                 }
 |  |                 }
 | 
												
													
														
															|  |                 logger.info("图文咨询订单待支付微信消息模板推送开始");
 |  |                 logger.info("图文咨询订单待支付微信消息模板推送开始");
 | 
												
													
														
															|  |             } else if ("17".equals(type)) {
 |  |             } else if ("17".equals(type)) {
 | 
												
													
														
															|  |                 contentMsg = "您有一个视频咨询订单待支付,点击完成支付,如您已支付请忽略本条信息";
 |  |                 contentMsg = "您有一个视频咨询订单待支付,点击完成支付,如您已支付请忽略本条信息";
 | 
												
													
														
															|  |                 first =  consPatientDO.getName() + ",您好!您有一个视频咨询订单待支付,请及时支付。";
 |  | 
 | 
												
													
														
															|  |                 if (StringUtils.isNotBlank(outpatientId)){
 |  |                 if (StringUtils.isNotBlank(outpatientId)){
 | 
												
													
														
															|  |                     msgUrl="/ims-wx/index.html#/returnVisit/record?outpatientId="+outpatientId;
 |  |                     msgUrl="/ims-wx/index.html#/returnVisit/record?outpatientId="+outpatientId;
 | 
												
													
														
															|  | 
 |  |                     first =  outpatientDO.getConsumerName() + ",您好!您有一个视频咨询订单待支付,请及时支付。";
 | 
												
													
														
															|  |                 }else{
 |  |                 }else{
 | 
												
													
														
															|  |                     msgUrl="/ims-wx/index.html#/chatRoom?type=1&consultCode="+consultTeam.getConsult();
 |  |                     msgUrl="/ims-wx/index.html#/chatRoom?type=1&consultCode="+consultTeam.getConsult();
 | 
												
													
														
															|  | 
 |  |                     first =  consPatientDO.getName() + ",您好!您有一个视频咨询订单待支付,请及时支付。";
 | 
												
													
														
															|  |                 }
 |  |                 }
 | 
												
													
														
															|  |                 logger.info("视频咨询订单待支付微信消息模板推送开始");
 |  |                 logger.info("视频咨询订单待支付微信消息模板推送开始");
 | 
												
													
														
															|  |             }
 |  |             }
 | 
												
											
												
													
														
															|  | @ -4196,7 +4198,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
												
													
														
															|  |                   logger.info("视频问诊已接诊提醒微信模板消息发送开始");
 |  |                   logger.info("视频问诊已接诊提醒微信模板消息发送开始");
 | 
												
													
														
															|  |               }
 |  |               }
 | 
												
													
														
															|  |               if ("17".equals(type)) {
 |  |               if ("17".equals(type)) {
 | 
												
													
														
															|  |                   first = consDoctorDO.getName() + consDoctorDO.getJobTitleName() + "医生已向您发起视频通话邀请,请点击详情进入视频诊室。";
 |  | 
 | 
												
													
														
															|  | 
 |  |                   first = doctorDO.getName() + doctorDO.getJobTitleName() + "医生已向您发起视频通话邀请,请点击详情进入视频诊室。";
 | 
												
													
														
															|  |                   contentMsg = "您的视频咨询已开始,错过将重新排队";
 |  |                   contentMsg = "您的视频咨询已开始,错过将重新排队";
 | 
												
													
														
															|  |                   remark = "点击消息进入视频诊室接听视频通话,开始视频复诊。";
 |  |                   remark = "点击消息进入视频诊室接听视频通话,开始视频复诊。";
 | 
												
													
														
															|  |                   if (StringUtils.isNotEmpty(outpatientId)){
 |  |                   if (StringUtils.isNotEmpty(outpatientId)){
 | 
												
											
												
													
														
															|  | @ -5366,6 +5368,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
												
													
														
															|  |                 sql += " and d.del='1' order by d.consult_status DESC ,evaluate.score desc,a.total " + consutlSort;
 |  |                 sql += " and d.del='1' order by d.consult_status DESC ,evaluate.score desc,a.total " + consutlSort;
 | 
												
													
														
															|  |             }else{
 |  |             }else{
 | 
												
													
														
															|  |                 sql += " and d.del='1' order by d.consult_status desc nulls last ,evaluate.score desc nulls last ,a.total " + consutlSort;
 |  |                 sql += " and d.del='1' order by d.consult_status desc nulls last ,evaluate.score desc nulls last ,a.total " + consutlSort;
 | 
												
													
														
															|  | 
 |  |                 sql+=" NULLS LAST,\n" +
 | 
												
													
														
															|  | 
 |  |                         "\tD.id DESC";
 | 
												
													
														
															|  |             }
 |  |             }
 | 
												
													
														
															|  |         }else {
 |  |         }else {
 | 
												
													
														
															|  |             sql += " and d.del='1' order by d.consult_status DESC ,evaluate.score desc,a.total " + consutlSort;
 |  |             sql += " and d.del='1' order by d.consult_status DESC ,evaluate.score desc,a.total " + consutlSort;
 | 
												
											
												
													
														
															|  | @ -6714,7 +6718,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
												
													
														
															|  |                 //1.图文 2.视频 3家医
 |  |                 //1.图文 2.视频 3家医
 | 
												
													
														
															|  |                 if ("1".equals(outpatient.getType())) {
 |  |                 if ("1".equals(outpatient.getType())) {
 | 
												
													
														
															|  |                     systemMessageDO.setTitle("图文咨询");
 |  |                     systemMessageDO.setTitle("图文咨询");
 | 
												
													
														
															|  |                     systemMessageDO.setType("4");
 |  | 
 | 
												
													
														
															|  | 
 |  |                     systemMessageDO.setType("18");
 | 
												
													
														
															|  |                     if (payFlag){
 |  |                     if (payFlag){
 | 
												
													
														
															|  |                         saveInquirySystemMessage(outpatient,null);
 |  |                         saveInquirySystemMessage(outpatient,null);
 | 
												
													
														
															|  |                     }
 |  |                     }
 | 
												
											
												
													
														
															|  | @ -6807,7 +6811,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
												
													
														
															|  |         systemMessageDO.setType("11");
 |  |         systemMessageDO.setType("11");
 | 
												
													
														
															|  |         JSONObject data = new JSONObject();
 |  |         JSONObject data = new JSONObject();
 | 
												
													
														
															|  |         if (outpatient!=null){
 |  |         if (outpatient!=null){
 | 
												
													
														
															|  |             if("1"==outpatient.getOutpatientType()){
 |  | 
 | 
												
													
														
															|  | 
 |  |             if("1".equalsIgnoreCase(outpatient.getOutpatientType())){
 | 
												
													
														
															|  |                 if ("1".equals(outpatient.getType())) {
 |  |                 if ("1".equals(outpatient.getType())) {
 | 
												
													
														
															|  |                     type = "9";
 |  |                     type = "9";
 | 
												
													
														
															|  |                     msg = outpatient.getPatientName() + ",您好!您有一个图文复诊订单待支付,请及时支付。点击完成支付,如您已支付请忽略本条信息。";
 |  |                     msg = outpatient.getPatientName() + ",您好!您有一个图文复诊订单待支付,请及时支付。点击完成支付,如您已支付请忽略本条信息。";
 | 
												
											
												
													
														
															|  | @ -6815,7 +6819,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
												
													
														
															|  |                     type = "16";
 |  |                     type = "16";
 | 
												
													
														
															|  |                     msg = outpatient.getPatientName() + ",您好!您有一个视频复诊订单待支付,请及时支付。点击完成支付,如您已支付请忽略本条信息。";
 |  |                     msg = outpatient.getPatientName() + ",您好!您有一个视频复诊订单待支付,请及时支付。点击完成支付,如您已支付请忽略本条信息。";
 | 
												
													
														
															|  |                 }
 |  |                 }
 | 
												
													
														
															|  |             }else if ("3"==outpatient.getOutpatientType()){
 |  | 
 | 
												
													
														
															|  | 
 |  |             }else if ("3".equalsIgnoreCase(outpatient.getOutpatientType())){
 | 
												
													
														
															|  |                 if ("1".equals(outpatient.getType())) {
 |  |                 if ("1".equals(outpatient.getType())) {
 | 
												
													
														
															|  |                     type = "1";
 |  |                     type = "1";
 | 
												
													
														
															|  |                     msg = outpatient.getPatientName() + ",您好!您有一个图文咨询订单待支付,请及时支付。点击完成支付,如您已支付请忽略本条信息。";
 |  |                     msg = outpatient.getPatientName() + ",您好!您有一个图文咨询订单待支付,请及时支付。点击完成支付,如您已支付请忽略本条信息。";
 |