mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 12:05:05 +08:00
update 电池充电报告Service
This commit is contained in:
@@ -3,6 +3,7 @@ package com.jsowell.api.thirdparty;
|
||||
import com.jsowell.common.annotation.Anonymous;
|
||||
import com.jsowell.common.core.controller.BaseController;
|
||||
import com.jsowell.common.response.RestApiResponse;
|
||||
import com.jsowell.common.util.StringUtils;
|
||||
import com.jsowell.thirdparty.platform.dto.BatteryChargeReportDTO;
|
||||
import com.jsowell.thirdparty.platform.service.impl.BatteryChargeReportService;
|
||||
import com.jsowell.thirdparty.platform.service.impl.ChargeAlgorithmService;
|
||||
@@ -31,8 +32,12 @@ public class ChargeAlgorithmController extends BaseController {
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
// String result = chargeAlgorithmService.pushOrderInfo(orderCode);
|
||||
String result = batteryChargeReportService.getTaskIdByOrderCode(dto.getOrderCode(), dto.getReportType());
|
||||
response = new RestApiResponse<>(result);
|
||||
String taskId = batteryChargeReportService.getTaskIdByOrderCode(dto.getOrderCode());
|
||||
String url = "";
|
||||
if (StringUtils.isNotBlank(taskId)) {
|
||||
url = batteryChargeReportService.getUrlByTaskId(taskId, dto.getReportType());
|
||||
}
|
||||
response = new RestApiResponse<>(url);
|
||||
}catch (Exception e) {
|
||||
logger.error("算法应用推送订单信息 error, ", e);
|
||||
response = new RestApiResponse<>(e);
|
||||
|
||||
Reference in New Issue
Block a user