mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
临时接口,订单退款
This commit is contained in:
@@ -121,4 +121,26 @@ public class JumpController extends BaseController {
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* 临时订单退款
|
||||
* http://localhost:8080/app-xcx-h5/tempOrderRefund
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("tempOrderRefund")
|
||||
public RestApiResponse<?> tempOrderRefund() {
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
orderBasicInfoService.tempOrderRefund();
|
||||
response = new RestApiResponse<>();
|
||||
} catch (BusinessException e) {
|
||||
logger.warn("临时订单退款接口 warn", e);
|
||||
response = new RestApiResponse<>(e.getCode(), e.getMessage());
|
||||
} catch (Exception e) {
|
||||
logger.error("临时订单退款接口 error", e);
|
||||
response = new RestApiResponse<>(ReturnCodeEnum.CODE_WEIXIN_REFUND_ERROR);
|
||||
}
|
||||
logger.info("临时刷数据接口 result:{}", JSONObject.toJSONString(response));
|
||||
return response;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -833,13 +833,9 @@ public class OrderService {
|
||||
|
||||
// 监控信息
|
||||
OrderDetailInfoVO.OrderRealTimeInfo realTimeInfo = new OrderDetailInfoVO.OrderRealTimeInfo();
|
||||
|
||||
RealTimeMonitorData realTimeMonitorData = chargingRealTimeDataList.get(0);
|
||||
realTimeInfo.setOrderAmount(realTimeMonitorData.getChargingAmount());
|
||||
// realTimeInfo.setTotalElectricityAmount();
|
||||
// realTimeInfo.setTotalServiceAmount();
|
||||
realTimeInfo.setChargedDegree(realTimeMonitorData.getChargingDegree());
|
||||
// realTimeInfo.setSOC(realTimeMonitorData.getSOC());
|
||||
realTimeInfo.setChargingTime(realTimeMonitorData.getSumChargingTime());
|
||||
vo.setOrderRealTimeInfo(realTimeInfo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user