|
@ -644,7 +644,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.findOne(businessOrderDO.getRelationCode());
|
|
|
WlyyPrescriptionDO wlyyPrescriptionDO = prescriptionDao.getOne(businessOrderDO.getRelationCode());
|
|
|
JSONObject object = (JSONObject) JSONObject.toJSON(wlyyPrescriptionDO);
|
|
|
logger.info("wlyyPrescriptionDO参数入参"+object.toJSONString());
|
|
|
WlyyPrescriptionVO prescriptionVO = JSONObject.toJavaObject(object,WlyyPrescriptionVO.class);
|
|
@ -680,7 +680,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.findById("ylz_pay_config");
|
|
|
OauthYlzConfigDO oauthYlzConfigDO = oauthYlzConfigDao.getOne("ylz_pay_config");
|
|
|
if(oauthYlzConfigDO==null){
|
|
|
return "未找到支付配置文件";
|
|
|
}
|
|
@ -717,7 +717,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.findOne(businessOrderDO.getRelationCode());
|
|
|
WlyyPrescriptionDO wlyyPrescriptionDO = prescriptionDao.getOne(businessOrderDO.getRelationCode());
|
|
|
JSONObject object = (JSONObject) JSONObject.toJSON(wlyyPrescriptionDO);
|
|
|
logger.info("wlyyPrescriptionDO参数入参"+object.toJSONString());
|
|
|
WlyyPrescriptionVO prescriptionVO = JSONObject.toJavaObject(object,WlyyPrescriptionVO.class);
|
|
@ -747,7 +747,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
//发送IM消息
|
|
|
hospitalSystemMessageService.sendImMessage(systemMessageDO);
|
|
|
}else if (businessOrderDO!=null&&businessOrderDO.getOrderCategory().equalsIgnoreCase("6")){
|
|
|
YlzMedicalRelationDO ylzMedicalRelationDO = ylzMedicailRelationDao.findOne(businessOrderDO.getRelationCode());
|
|
|
YlzMedicalRelationDO ylzMedicalRelationDO = ylzMedicailRelationDao.getOne(businessOrderDO.getRelationCode());
|
|
|
prescriptionService.confirmSettlementService(ylzMedicalRelationDO.getRelationCode());
|
|
|
}
|
|
|
}
|
|
@ -767,7 +767,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.findById("ylz_pay_config");
|
|
|
OauthYlzConfigDO oauthYlzConfigDO = oauthYlzConfigDao.getOne("ylz_pay_config");
|
|
|
if(oauthYlzConfigDO==null){
|
|
|
return "未找到支付配置文件";
|
|
|
}
|
|
@ -832,7 +832,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.findOne(businessOrderDO.getRelationCode());
|
|
|
WlyyPrescriptionDO wlyyPrescriptionDO = prescriptionDao.getOne(businessOrderDO.getRelationCode());
|
|
|
JSONObject object = (JSONObject) JSONObject.toJSON(wlyyPrescriptionDO);
|
|
|
logger.info("wlyyPrescriptionDO参数入参"+object.toJSONString());
|
|
|
WlyyPrescriptionVO prescriptionVO = JSONObject.toJavaObject(object,WlyyPrescriptionVO.class);
|
|
@ -969,7 +969,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
logger.info("pageUrl="+pageUrl);
|
|
|
logger.info("wxId="+wxId);
|
|
|
String ticket = wechatInfoService.getJsapi_ticketByToken(wxId);
|
|
|
WxWechatDO wxWechatDO = wechatDao.findById(wxId);
|
|
|
WxWechatDO wxWechatDO = wechatDao.findByIdAndStatus(wxId);
|
|
|
Map<Object, Object> map = new HashMap<Object, Object>();
|
|
|
if (ticket != null) {
|
|
|
String noncestr = UUID.randomUUID().toString();
|
|
@ -1002,7 +1002,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
if (wxId.equalsIgnoreCase("xm_zsyy_wx")){
|
|
|
id = "zsyy";
|
|
|
}
|
|
|
WxEnterpriseDO wxEnterpriseDO = wxEnterpriseDao.findOne(id);
|
|
|
WxEnterpriseDO wxEnterpriseDO = wxEnterpriseDao.getOne(id);
|
|
|
Map<Object, Object> map = new HashMap<Object, Object>();
|
|
|
if (ticket != null) {
|
|
|
String noncestr = UUID.randomUUID().toString();
|
|
@ -1157,7 +1157,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.findById("ylz_balance_config");
|
|
|
OauthYlzConfigDO oauthYlzConfigDO = oauthYlzConfigDao.getOne("ylz_balance_config");
|
|
|
if(oauthYlzConfigDO==null){
|
|
|
return "未找到支付配置文件";
|
|
|
}
|
|
@ -1178,7 +1178,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
logger.info("解密后:{}",JSON.toJSONString(decryptRes) );
|
|
|
JSONObject jsonObject = JSONObject.parseObject(JSON.toJSONString(decryptRes));
|
|
|
String hsName="核酸";
|
|
|
WlyyHospitalSysDictDO wlyyHospitalSysDictDO = wlyyHospitalSysDictDao.findById("natItemName");
|
|
|
WlyyHospitalSysDictDO wlyyHospitalSysDictDO = wlyyHospitalSysDictDao.getOne("natItemName");
|
|
|
if (wlyyHospitalSysDictDO!=null){
|
|
|
hsName=wlyyHospitalSysDictDO.getDictValue();
|
|
|
}
|
|
@ -1213,7 +1213,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
if (prescriptionDO.getStatus()!=30&&prescriptionDO.getStatus()>=20){
|
|
|
String fee=null;
|
|
|
String title = null;
|
|
|
WlyyOutpatientDO wlyyOutpatientDO = outpatientDao.findById(prescriptionDO.getOutpatientId());
|
|
|
WlyyOutpatientDO wlyyOutpatientDO = outpatientDao.getOne(prescriptionDO.getOutpatientId());
|
|
|
if (wlyyOutpatientDO.getHisStatus()==null){
|
|
|
fee=(prescriptionDO.getDrugFee()+wlyyOutpatientDO.getFee())+"";
|
|
|
if (wxId.equalsIgnoreCase("xm_zsyy_wx")){
|
|
@ -1275,14 +1275,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.findById(natAppointmentDO.getPatientId());
|
|
|
BasePatientDO patientDO = patientDao.getOne(natAppointmentDO.getPatientId());
|
|
|
//发送预约成功通知
|
|
|
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.findById("natConfigTestNew");
|
|
|
WlyyHospitalSysDictDO hospitalSysDictDO = wlyyHospitalSysDictDao.getOne("natConfigTestNew");
|
|
|
String addres = "我院五号楼北侧(急诊部后侧)";
|
|
|
String timeDes = "6-8小时";
|
|
|
if (hospitalSysDictDO!=null){
|
|
@ -1418,7 +1418,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
@ApiParam(name = "demoflag", value = "是否测试")
|
|
|
@RequestParam(value = "demoflag", required = false) boolean demoflag) throws Exception{
|
|
|
|
|
|
WlyyPrescriptionDO wlyyPrescriptionDO = prescriptionDao.findOne(prescriptionId);
|
|
|
WlyyPrescriptionDO wlyyPrescriptionDO = prescriptionDao.getOne(prescriptionId);
|
|
|
//判断是否是快递如果是则下物流单
|
|
|
List<WlyyPrescriptionExpressageDO> expressList=prescriptionExpressageDao.findByOutpatientId(wlyyPrescriptionDO.getOutpatientId());
|
|
|
if (null!=expressList&&expressList.size()>0){
|
|
@ -1994,7 +1994,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
@GetMapping("/smsToDoctor")
|
|
|
public Envelop sentMessageRemindSms(@RequestParam(value = "consult", required = true)String consult){
|
|
|
try {
|
|
|
ConsultDo consultDo = consultDao.findOne(consult);
|
|
|
ConsultDo consultDo = consultDao.getOne(consult);
|
|
|
return success(systemMessageService.sendDoctorRemindSms(consultDo));
|
|
|
} catch (Exception e) {
|
|
|
return failedException(e);
|
|
@ -2141,14 +2141,14 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
@ApiParam(name = "type", value = "追问内容类型:1文字,2图片,3语音 ... (im消息类型)")
|
|
|
@RequestParam(value = "type",required = true) Integer type,
|
|
|
@ApiParam(name = "times", value = "")
|
|
|
@RequestParam(value = "times",required = false) Integer times) throws Exception {
|
|
|
@RequestParam(value = "times",required = false) Integer times,HttpServletRequest request) throws Exception {
|
|
|
JSONObject object = new JSONObject();
|
|
|
UploadVO uploadVO = new UploadVO();
|
|
|
|
|
|
//处理语音文件
|
|
|
if(!org.springframework.util.StringUtils.isEmpty(wxId)){
|
|
|
if(3 == type){//语音文件
|
|
|
String voicepath = enterpriseService.fetchWxVoices(wxId);
|
|
|
String voicepath = enterpriseService.fetchWxVoices(wxId,request);
|
|
|
logger.info("voice_path:"+voicepath);
|
|
|
JSONObject obj = new JSONObject();
|
|
|
String voiceurl = "";
|
|
@ -2189,7 +2189,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.findById(outpatientId);
|
|
|
WlyyOutpatientDO wlyyOutpatientDO = outpatientDao.getOne(outpatientId);
|
|
|
ConsultTeamDo consultTeamDo = consultTeamDao.queryByRelationCode(outpatientId);
|
|
|
|
|
|
return success(prescriptionService.wxTempalteJPush(templateCode,wlyyOutpatientDO,consultTeamDo,drugName,mailNo,mailStatus,prescriptionId));
|
|
@ -2590,7 +2590,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
JSONObject orderStatus=JSONObject.parseObject(res);
|
|
|
if ("0".equalsIgnoreCase(orderStatus.getString("code"))){
|
|
|
System.out.println("开始同步状态");
|
|
|
BaseNatAppointmentDO baseNatAppointmentDO = baseNatAppointmentDao.findOne(Integer.valueOf(businessOrderDO.getRelationCode()));
|
|
|
BaseNatAppointmentDO baseNatAppointmentDO = baseNatAppointmentDao.getOne(Integer.valueOf(businessOrderDO.getRelationCode()));
|
|
|
if (baseNatAppointmentDO!=null){
|
|
|
if (baseNatAppointmentDO.getPayStatus().equalsIgnoreCase("0")){
|
|
|
JSONObject chargeObj=new JSONObject();
|