|
@ -632,7 +632,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
BusinessOrderDO businessOrderDO = businessOrderDao.selectByOrderNo(seqNo);
|
|
|
if (businessOrderDO.getStatus()!=1&&businessOrderDO.getStatus()!=9){
|
|
|
if (businessOrderDO!=null&&businessOrderDO.getOrderCategory().equalsIgnoreCase("4")){
|
|
|
WlyyPrescriptionDO wlyyPrescriptionDO = prescriptionDao.getOne(businessOrderDO.getRelationCode());
|
|
|
WlyyPrescriptionDO wlyyPrescriptionDO = prescriptionDao.findById(businessOrderDO.getRelationCode()).orElse(null);
|
|
|
JSONObject object = (JSONObject) JSONObject.toJSON(wlyyPrescriptionDO);
|
|
|
logger.info("wlyyPrescriptionDO参数入参"+object.toJSONString());
|
|
|
WlyyPrescriptionVO prescriptionVO = JSONObject.toJavaObject(object,WlyyPrescriptionVO.class);
|
|
@ -668,7 +668,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
@RequestMapping(value = "/ylzReceiveNotify")
|
|
|
public String mmpReceiveNotify(HttpServletRequest request, HttpServletResponse response) throws IOException, PayException {
|
|
|
response.setContentType("text/html;charset=utf-8");
|
|
|
OauthYlzConfigDO oauthYlzConfigDO = oauthYlzConfigDao.getOne("ylz_pay_config");
|
|
|
OauthYlzConfigDO oauthYlzConfigDO = oauthYlzConfigDao.findById("ylz_pay_config").orElse(null);
|
|
|
if(oauthYlzConfigDO==null){
|
|
|
return "未找到支付配置文件";
|
|
|
}
|
|
@ -705,7 +705,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
BusinessOrderDO businessOrderDO = businessOrderDao.selectByOrderNo(traceNo);
|
|
|
if (businessOrderDO.getStatus()!=1){
|
|
|
if (businessOrderDO!=null&&businessOrderDO.getOrderCategory().equalsIgnoreCase("4")){
|
|
|
WlyyPrescriptionDO wlyyPrescriptionDO = prescriptionDao.getOne(businessOrderDO.getRelationCode());
|
|
|
WlyyPrescriptionDO wlyyPrescriptionDO = prescriptionDao.findById(businessOrderDO.getRelationCode()).orElse(null);
|
|
|
JSONObject object = (JSONObject) JSONObject.toJSON(wlyyPrescriptionDO);
|
|
|
logger.info("wlyyPrescriptionDO参数入参"+object.toJSONString());
|
|
|
WlyyPrescriptionVO prescriptionVO = JSONObject.toJavaObject(object,WlyyPrescriptionVO.class);
|
|
@ -735,7 +735,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
//发送IM消息
|
|
|
hospitalSystemMessageService.sendImMessage(systemMessageDO);
|
|
|
}else if (businessOrderDO!=null&&businessOrderDO.getOrderCategory().equalsIgnoreCase("6")){
|
|
|
YlzMedicalRelationDO ylzMedicalRelationDO = ylzMedicailRelationDao.getOne(businessOrderDO.getRelationCode());
|
|
|
YlzMedicalRelationDO ylzMedicalRelationDO = ylzMedicailRelationDao.findById(businessOrderDO.getRelationCode()).orElse(null);
|
|
|
prescriptionService.confirmSettlementService(ylzMedicalRelationDO.getRelationCode());
|
|
|
}
|
|
|
}
|
|
@ -755,7 +755,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
@ApiOperation("支付回调")
|
|
|
public String receiveNotify(HttpServletRequest request, HttpServletResponse response) throws IOException, IOException {
|
|
|
response.setContentType("text/html;charset=utf-8");
|
|
|
OauthYlzConfigDO oauthYlzConfigDO = oauthYlzConfigDao.getOne("ylz_pay_config");
|
|
|
OauthYlzConfigDO oauthYlzConfigDO = oauthYlzConfigDao.findById("ylz_pay_config").orElse(null);
|
|
|
if(oauthYlzConfigDO==null){
|
|
|
return "未找到支付配置文件";
|
|
|
}
|
|
@ -820,7 +820,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
BusinessOrderDO businessOrderDO = businessOrderDao.selectByOrderNo(outChargeNo);
|
|
|
if (businessOrderDO.getStatus()!=1){
|
|
|
if (businessOrderDO!=null&&businessOrderDO.getOrderCategory().equalsIgnoreCase("4")){
|
|
|
WlyyPrescriptionDO wlyyPrescriptionDO = prescriptionDao.getOne(businessOrderDO.getRelationCode());
|
|
|
WlyyPrescriptionDO wlyyPrescriptionDO = prescriptionDao.findById(businessOrderDO.getRelationCode()).orElse(null);
|
|
|
JSONObject object = (JSONObject) JSONObject.toJSON(wlyyPrescriptionDO);
|
|
|
logger.info("wlyyPrescriptionDO参数入参"+object.toJSONString());
|
|
|
WlyyPrescriptionVO prescriptionVO = JSONObject.toJavaObject(object,WlyyPrescriptionVO.class);
|
|
@ -990,7 +990,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
if (wxId.equalsIgnoreCase("xm_zsyy_wx")){
|
|
|
id = "zsyy";
|
|
|
}
|
|
|
WxEnterpriseDO wxEnterpriseDO = wxEnterpriseDao.getOne(id);
|
|
|
WxEnterpriseDO wxEnterpriseDO = wxEnterpriseDao.findById(id).orElse(null);
|
|
|
Map<Object, Object> map = new HashMap<Object, Object>();
|
|
|
if (ticket != null) {
|
|
|
String noncestr = UUID.randomUUID().toString();
|
|
@ -1145,7 +1145,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
@RequestMapping(value = "/ylzSettleRecord")
|
|
|
public String ylzSettleRecord(HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
response.setContentType("text/html;charset=utf-8");
|
|
|
OauthYlzConfigDO oauthYlzConfigDO = oauthYlzConfigDao.getOne("ylz_balance_config");
|
|
|
OauthYlzConfigDO oauthYlzConfigDO = oauthYlzConfigDao.findById("ylz_balance_config").orElse(null);
|
|
|
if(oauthYlzConfigDO==null){
|
|
|
return "未找到支付配置文件";
|
|
|
}
|
|
@ -1166,7 +1166,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
logger.info("解密后:{}",JSON.toJSONString(decryptRes) );
|
|
|
JSONObject jsonObject = JSONObject.parseObject(JSON.toJSONString(decryptRes));
|
|
|
String hsName="核酸";
|
|
|
WlyyHospitalSysDictDO wlyyHospitalSysDictDO = wlyyHospitalSysDictDao.getOne("natItemName");
|
|
|
WlyyHospitalSysDictDO wlyyHospitalSysDictDO = wlyyHospitalSysDictDao.findById("natItemName").orElse(null);
|
|
|
if (wlyyHospitalSysDictDO!=null){
|
|
|
hsName=wlyyHospitalSysDictDO.getDictValue();
|
|
|
}
|
|
@ -1201,7 +1201,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
if (prescriptionDO.getStatus()!=30&&prescriptionDO.getStatus()>=20){
|
|
|
String fee=null;
|
|
|
String title = null;
|
|
|
WlyyOutpatientDO wlyyOutpatientDO = outpatientDao.getOne(prescriptionDO.getOutpatientId());
|
|
|
WlyyOutpatientDO wlyyOutpatientDO = outpatientDao.findById(prescriptionDO.getOutpatientId()).orElse(null);
|
|
|
if (wlyyOutpatientDO.getHisStatus()==null){
|
|
|
fee=(prescriptionDO.getDrugFee()+wlyyOutpatientDO.getFee())+"";
|
|
|
if (wxId.equalsIgnoreCase("xm_zsyy_wx")){
|
|
@ -1263,14 +1263,14 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
String title="您在厦门大学附属中山医院有一笔交易已支付完成!";
|
|
|
pushPayLog = payInfoNoticeService.pushPrescriptionPayAndHsjc(natAppointmentDO.getPatientId(),natAppointmentDO.getDoctorName(),waitPayDetailVO.getVoucherNo(),natAppointmentDO.getId()+"",fee,title,null,waitPayDetailVO.getRecipeNo());
|
|
|
}
|
|
|
BasePatientDO patientDO = patientDao.getOne(natAppointmentDO.getPatientId());
|
|
|
BasePatientDO patientDO = patientDao.findById(natAppointmentDO.getPatientId()).orElse(null);
|
|
|
//发送预约成功通知
|
|
|
String name= patientDO.getName();
|
|
|
String idcard = patientDO.getIdcard();
|
|
|
String mobile = patientDO.getMobile();
|
|
|
String url = "https://hlwyy.xmzsh.com/hlwyy/ims-wx/#/nucleicTest/detail?id="+natAppointmentDO.getId();
|
|
|
String date = DateUtil.dateToStrLong(natAppointmentDO.getAppointmentTime());
|
|
|
WlyyHospitalSysDictDO hospitalSysDictDO = wlyyHospitalSysDictDao.getOne("natConfigTestNew");
|
|
|
WlyyHospitalSysDictDO hospitalSysDictDO = wlyyHospitalSysDictDao.findById("natConfigTestNew").orElse(null);
|
|
|
String addres = "我院五号楼北侧(急诊部后侧)";
|
|
|
String timeDes = "6-8小时";
|
|
|
if (hospitalSysDictDO!=null){
|
|
@ -1406,7 +1406,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
@ApiParam(name = "demoflag", value = "是否测试")
|
|
|
@RequestParam(value = "demoflag", required = false) boolean demoflag) throws Exception{
|
|
|
|
|
|
WlyyPrescriptionDO wlyyPrescriptionDO = prescriptionDao.getOne(prescriptionId);
|
|
|
WlyyPrescriptionDO wlyyPrescriptionDO = prescriptionDao.findById(prescriptionId).orElse(null);
|
|
|
//判断是否是快递如果是则下物流单
|
|
|
List<WlyyPrescriptionExpressageDO> expressList=prescriptionExpressageDao.findByOutpatientId(wlyyPrescriptionDO.getOutpatientId());
|
|
|
if (null!=expressList&&expressList.size()>0){
|
|
@ -1982,7 +1982,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
@GetMapping("/smsToDoctor")
|
|
|
public Envelop sentMessageRemindSms(@RequestParam(value = "consult", required = true)String consult){
|
|
|
try {
|
|
|
ConsultDo consultDo = consultDao.getOne(consult);
|
|
|
ConsultDo consultDo = consultDao.findById(consult).orElse(null);
|
|
|
return success(systemMessageService.sendDoctorRemindSms(consultDo));
|
|
|
} catch (Exception e) {
|
|
|
return failedException(e);
|
|
@ -2177,7 +2177,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
@RequestParam(value = "mailStatus", required = false)String mailStatus,
|
|
|
@ApiParam(name = "prescriptionId", value = "")
|
|
|
@RequestParam(value = "prescriptionId", required = false)String prescriptionId) {
|
|
|
WlyyOutpatientDO wlyyOutpatientDO = outpatientDao.getOne(outpatientId);
|
|
|
WlyyOutpatientDO wlyyOutpatientDO = outpatientDao.findById(outpatientId).orElse(null);
|
|
|
ConsultTeamDo consultTeamDo = consultTeamDao.queryByRelationCode(outpatientId);
|
|
|
|
|
|
return success(prescriptionService.wxTempalteJPush(templateCode,wlyyOutpatientDO,consultTeamDo,drugName,mailNo,mailStatus,prescriptionId));
|
|
@ -2578,7 +2578,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
JSONObject orderStatus=JSONObject.parseObject(res);
|
|
|
if ("0".equalsIgnoreCase(orderStatus.getString("code"))){
|
|
|
System.out.println("开始同步状态");
|
|
|
BaseNatAppointmentDO baseNatAppointmentDO = baseNatAppointmentDao.getOne(Integer.valueOf(businessOrderDO.getRelationCode()));
|
|
|
BaseNatAppointmentDO baseNatAppointmentDO = baseNatAppointmentDao.findById(Integer.valueOf(businessOrderDO.getRelationCode())).orElse(null);
|
|
|
if (baseNatAppointmentDO!=null){
|
|
|
if (baseNatAppointmentDO.getPayStatus().equalsIgnoreCase("0")){
|
|
|
JSONObject chargeObj=new JSONObject();
|