|
@ -35,6 +35,7 @@ import com.yihu.jw.util.common.IdCardUtil;
|
|
import com.yihu.jw.util.date.DateUtil;
|
|
import com.yihu.jw.util.date.DateUtil;
|
|
import com.yihu.jw.util.http.HttpClientUtil;
|
|
import com.yihu.jw.util.http.HttpClientUtil;
|
|
import com.yihu.jw.utils.StringUtil;
|
|
import com.yihu.jw.utils.StringUtil;
|
|
|
|
import com.yihu.jw.wechat.enterprise.EnterpriseService;
|
|
import com.yihu.mysql.query.BaseJpaService;
|
|
import com.yihu.mysql.query.BaseJpaService;
|
|
import com.yihu.utils.network.HttpResponse;
|
|
import com.yihu.utils.network.HttpResponse;
|
|
import com.yihu.utils.network.HttpUtils;
|
|
import com.yihu.utils.network.HttpUtils;
|
|
@ -75,14 +76,6 @@ public class HcyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO,
|
|
@Autowired
|
|
@Autowired
|
|
private PrescriptionExpressageDao prescriptionExpressageDao;
|
|
private PrescriptionExpressageDao prescriptionExpressageDao;
|
|
|
|
|
|
@Autowired
|
|
|
|
private HttpClientUtil httpClientUtil;
|
|
|
|
@Autowired
|
|
|
|
private OauthCaConfigDao oauthCaConfigDao;
|
|
|
|
@Autowired
|
|
|
|
private PrescriptionInfoDao infoDao;
|
|
|
|
@Autowired
|
|
|
|
private PrescriptionDiagnosisDao diagnosisDao;
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private BasePatientDao patientDao;
|
|
private BasePatientDao patientDao;
|
|
@Autowired
|
|
@Autowired
|
|
@ -110,6 +103,8 @@ public class HcyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO,
|
|
public PrescriptionService prescriptionService;
|
|
public PrescriptionService prescriptionService;
|
|
@Autowired
|
|
@Autowired
|
|
public PrescriptionDiagnosisDao prescriptionDiagnosisDao;
|
|
public PrescriptionDiagnosisDao prescriptionDiagnosisDao;
|
|
|
|
@Autowired
|
|
|
|
private EnterpriseService enterpriseService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2067,6 +2062,18 @@ public class HcyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO,
|
|
}
|
|
}
|
|
try {
|
|
try {
|
|
sfToHis(outpatientId, realOrder);
|
|
sfToHis(outpatientId, realOrder);
|
|
|
|
WlyyHospitalSysDictDO hospitalSysDictDO = wlyyHospitalSysDictDao.findById("sendDrugsMessage");
|
|
|
|
String content = "有患者下单了,请及时登录系统查看并发药。";
|
|
|
|
if (hospitalSysDictDO!=null){
|
|
|
|
String message = hospitalSysDictDO.getDictValue();
|
|
|
|
if (StringUtils.isNoneBlank(message)){
|
|
|
|
String str[] = message.split(",");
|
|
|
|
for (int i =0;i<str.length;i++){
|
|
|
|
String mobile = str[i];
|
|
|
|
enterpriseService.sendMKMesByMobile("xm_hcyy_wx",mobile,content);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|