配置文件

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