配置文件

This commit is contained in:
sxu 2025-02-26 13:00:07 +08:00
parent 5ae89b8a2c
commit c5b60c8953
1 changed files with 15 additions and 7 deletions

View File

@ -69,9 +69,9 @@ public class TherapyAppointmentsServiceImpl extends ServiceImpl<TherapyAppointme
// //
// @Value("${niu.serialnum}") // @Value("${niu.serialnum}")
// private String serialnum; // private String serialnum;
//
@Value("${mljk.url}") // @Value("${mljk.url}")
private String ML_BASE_URL; // private String ML_BASE_URL;
private static final String ML_CREATE_ORDER = "/api/PhysicalTherapy/CreateOrder"; private static final String ML_CREATE_ORDER = "/api/PhysicalTherapy/CreateOrder";
@ -173,7 +173,9 @@ public class TherapyAppointmentsServiceImpl extends ServiceImpl<TherapyAppointme
bean.setOrderPayInfo(ajaxResultVo.getMsg()); bean.setOrderPayInfo(ajaxResultVo.getMsg());
//调用食堂卡退款 //调用食堂卡退款
AjaxResult refundResultVo = refundOperation(bean); AjaxResult refundResultVo = refundOperation(bean);
if (refundResultVo != null) return refundResultVo; if (refundResultVo != null) {
return refundResultVo;
}
} }
return AjaxResult.success(); return AjaxResult.success();
} }
@ -213,7 +215,9 @@ public class TherapyAppointmentsServiceImpl extends ServiceImpl<TherapyAppointme
bean.setCustId(Long.valueOf(dto.getCustId())); bean.setCustId(Long.valueOf(dto.getCustId()));
//退款 //退款
AjaxResult refundResultVo = refundOperation(bean); AjaxResult refundResultVo = refundOperation(bean);
if (refundResultVo != null) return refundResultVo; if (refundResultVo != null) {
return refundResultVo;
}
//逻辑删除当前订单 //逻辑删除当前订单
this.baseMapper.deleteById(dto.getId()); this.baseMapper.deleteById(dto.getId());
@ -474,14 +478,18 @@ public class TherapyAppointmentsServiceImpl extends ServiceImpl<TherapyAppointme
bean.setOrderPayInfo(dto.getOrderPayInfo()); bean.setOrderPayInfo(dto.getOrderPayInfo());
bean.setCustId(Long.valueOf(dto.getCustId())); bean.setCustId(Long.valueOf(dto.getCustId()));
AjaxResult refundResult = refundOperation(bean); AjaxResult refundResult = refundOperation(bean);
if (refundResult != null) return refundResult; if (refundResult != null) {
return refundResult;
}
//修改订单信息 //修改订单信息
TherapyAppointments therapyAppointments = new TherapyAppointments(); TherapyAppointments therapyAppointments = new TherapyAppointments();
therapyAppointments.setId(dto.getId()); therapyAppointments.setId(dto.getId());
therapyAppointments.setStatus("1"); therapyAppointments.setStatus("1");
boolean b = updateById(therapyAppointments); boolean b = updateById(therapyAppointments);
if (!b) return AjaxResult.error("理疗服务数据修改失败"); if (!b) {
return AjaxResult.error("理疗服务数据修改失败");
}
} catch (Exception e) { } catch (Exception e) {
return AjaxResult.error("退款失败,请联系管理员进行处理!"); return AjaxResult.error("退款失败,请联系管理员进行处理!");