|  | @@ -3,11 +3,13 @@ package cn.hnthyy.thmz.service.impl.thmz;
 | 
	
		
			
				|  |  |  import cn.hnthyy.thmz.common.Constants;
 | 
	
		
			
				|  |  |  import cn.hnthyy.thmz.entity.his.mz.*;
 | 
	
		
			
				|  |  |  import cn.hnthyy.thmz.entity.his.zd.ZdUnitCode;
 | 
	
		
			
				|  |  | +import cn.hnthyy.thmz.entity.thmz.Config;
 | 
	
		
			
				|  |  |  import cn.hnthyy.thmz.enums.OrderStatusEnum;
 | 
	
		
			
				|  |  |  import cn.hnthyy.thmz.enums.PayMarkEnum;
 | 
	
		
			
				|  |  |  import cn.hnthyy.thmz.pageDto.MzChargeDetailPageDto;
 | 
	
		
			
				|  |  |  import cn.hnthyy.thmz.service.his.mz.*;
 | 
	
		
			
				|  |  |  import cn.hnthyy.thmz.service.his.zd.ZdUnitCodeService;
 | 
	
		
			
				|  |  | +import cn.hnthyy.thmz.service.thmz.ConfigService;
 | 
	
		
			
				|  |  |  import cn.hnthyy.thmz.service.thmz.DispensingSocketService;
 | 
	
		
			
				|  |  |  import cn.hnthyy.thmz.service.thmz.HaiCiAdapterService;
 | 
	
		
			
				|  |  |  import cn.hnthyy.thmz.service.thmz.OrderStatusChangeService;
 | 
	
	
		
			
				|  | @@ -42,6 +44,8 @@ public class OrderStatusChangeServiceImpl implements OrderStatusChangeService {
 | 
	
		
			
				|  |  |      private MzYjReqService mzYjReqService;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private DispensingSocketService dispensingSocketService;
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private ConfigService configService;
 | 
	
		
			
				|  |  |      //就诊状态通知开关
 | 
	
		
			
				|  |  |      @Value("${sendNoticeToPatient}")
 | 
	
		
			
				|  |  |      private boolean sendNoticeToPatient;
 | 
	
	
		
			
				|  | @@ -138,6 +142,8 @@ public class OrderStatusChangeServiceImpl implements OrderStatusChangeService {
 | 
	
		
			
				|  |  |                  if (execDeps == null || execDeps.size() == 0) {
 | 
	
		
			
				|  |  |                      return;
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | +                Config config= configService.queryUserByKey(Constants.MESSAGE_TO_PHONE);
 | 
	
		
			
				|  |  | +                String messageToPhone=(config==null || StringUtils.isBlank(config.getConfigValue()))?"抽血室在一楼急诊科,大小便标本在门诊大楼三楼医学检验科,一楼急诊科的核酸采样室。":config.getConfigValue();
 | 
	
		
			
				|  |  |                  for (String str : execDeps) {
 | 
	
		
			
				|  |  |                      zdUnitCode = zdUnitCodeService.queryByCode(str);
 | 
	
		
			
				|  |  |                      if (zdUnitCode == null) {
 | 
	
	
		
			
				|  | @@ -145,7 +151,7 @@ public class OrderStatusChangeServiceImpl implements OrderStatusChangeService {
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                      if ("2010000".equals(str)) {
 | 
	
		
			
				|  |  |                          //检验
 | 
	
		
			
				|  |  | -                        haiCiAdapterService.commonMessageNotice(mzPatientMi.getIcCardNo(), "{\"data\":{\"first\":{\"color\":\"#FF0000\",\"value\":\"您好,您已完成缴费,请到指定地点进行检验检查。\"},\"keyword1\":{\"color\":\"#173177\",\"value\":\"" + zdUnitCode.getName() + "\"},\"keyword2\":{\"color\":\"#173177\",\"value\":\"" + zdUnitCode.getOfficePos() + "\"},\"remark\":{\"color\":\"#FF0000\",\"value\":\" 抽血室在一楼急诊科,大小便标本在门诊大楼三楼医学检验科,一楼急诊科的核酸采样室。\"}},\"miniprogram\":{\"appid\":\"\",\"pagepath\":\"\"},\"template_id\":\"amY5BinXb2IpwdXqcOyXxtZZ26XyQOIQ3j1ablSWxy0\",\"touser\":\"\",\"url\":\"\"}", new Date());
 | 
	
		
			
				|  |  | +                        haiCiAdapterService.commonMessageNotice(mzPatientMi.getIcCardNo(), "{\"data\":{\"first\":{\"color\":\"#FF0000\",\"value\":\"您好,您已完成缴费,请到指定地点进行检验检查。\"},\"keyword1\":{\"color\":\"#173177\",\"value\":\"" + zdUnitCode.getName() + "\"},\"keyword2\":{\"color\":\"#173177\",\"value\":\"" + zdUnitCode.getOfficePos() + "\"},\"remark\":{\"color\":\"#FF0000\",\"value\":\" "+messageToPhone+"\"}},\"miniprogram\":{\"appid\":\"\",\"pagepath\":\"\"},\"template_id\":\"amY5BinXb2IpwdXqcOyXxtZZ26XyQOIQ3j1ablSWxy0\",\"touser\":\"\",\"url\":\"\"}", new Date());
 | 
	
		
			
				|  |  |                      } else {
 | 
	
		
			
				|  |  |                          //检查
 | 
	
		
			
				|  |  |                          haiCiAdapterService.commonMessageNotice(mzPatientMi.getIcCardNo(), "{\"data\":{\"first\":{\"color\":\"#FF0000\",\"value\":\"您好,您已完成缴费,请到指定地点进行检验检查。\"},\"keyword1\":{\"color\":\"#173177\",\"value\":\"" + zdUnitCode.getName() + "\"},\"keyword2\":{\"color\":\"#173177\",\"value\":\"" + zdUnitCode.getOfficePos() + "\"},\"remark\":{\"color\":\"#FF0000\",\"value\":\" 感谢您的使用。\"}},\"miniprogram\":{\"appid\":\"\",\"pagepath\":\"\"},\"template_id\":\"amY5BinXb2IpwdXqcOyXxtZZ26XyQOIQ3j1ablSWxy0\",\"touser\":\"\",\"url\":\"\"}", new Date());
 |