mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
update 电池报告算法
This commit is contained in:
@@ -44,4 +44,18 @@ public class ChargeAlgorithmController extends BaseController {
|
|||||||
}
|
}
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@PostMapping("/getUrlByTaskId")
|
||||||
|
public RestApiResponse<?> getUrlByTaskId(@RequestBody BatteryChargeReportDTO dto) {
|
||||||
|
RestApiResponse<?> response = null;
|
||||||
|
try {
|
||||||
|
String url = batteryChargeReportService.getUrlByTaskId(dto.getTaskId(), dto.getReportType());
|
||||||
|
response = new RestApiResponse<>(url);
|
||||||
|
}catch (Exception e) {
|
||||||
|
logger.error("算法应用推送订单信息 error, ", e);
|
||||||
|
response = new RestApiResponse<>(e);
|
||||||
|
}
|
||||||
|
return response;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -768,12 +768,13 @@ public class TransactionRecordsRequestHandler extends AbstractYkcHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (StringUtils.isBlank(taskId)) {
|
if (StringUtils.isBlank(taskId)) {
|
||||||
log.info("推送充电订单算法平台 taskId 为空");
|
taskId = batteryChargeReportService.getTaskIdByOrderCode(orderCode);
|
||||||
|
// log.info("推送充电订单算法平台 taskId 为空");
|
||||||
}
|
}
|
||||||
log.info("推送充电订单算法平台 taskId:{}", taskId);
|
log.info("推送充电订单算法平台 orderCode:{}, taskId:{}", orderCode, taskId);
|
||||||
// 再根据 tasKId 获取链接
|
// 再根据 tasKId 获取链接
|
||||||
String url = batteryChargeReportService.getUrlByTaskId(taskId, reportType);
|
String url = batteryChargeReportService.getUrlByTaskId(taskId, reportType);
|
||||||
log.info("推送充电订单算法平台 result:{}", url);
|
log.info("推送充电订单算法平台 orderCode:{}, result:{}", orderCode, url);
|
||||||
|
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,4 +23,6 @@ public class BatteryChargeReportDTO {
|
|||||||
* 1-web; 2-pdf
|
* 1-web; 2-pdf
|
||||||
*/
|
*/
|
||||||
private String reportType;
|
private String reportType;
|
||||||
|
|
||||||
|
private String taskId;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user