mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
update 推送充电报告算法
This commit is contained in:
@@ -145,13 +145,17 @@ public class BatteryChargeReportService {
|
||||
// BatteryReportResult batteryReportResult = (BatteryReportResult) resultMap.get("result");
|
||||
BatteryReportResult batteryReportResult = JSONObject.parseObject(resultMap.get("result").toString(), BatteryReportResult.class);;
|
||||
if (StringUtils.equals(Constants.ONE, reportType)) {
|
||||
// 1-web 端
|
||||
resultUrl = batteryReportResult.getWebUrl();
|
||||
record.setWebUrl(resultUrl);
|
||||
if (StringUtils.isNotBlank(batteryReportResult.getWebUrl())) {
|
||||
// 1-web 端
|
||||
resultUrl = batteryReportResult.getWebUrl();
|
||||
record.setWebUrl(resultUrl);
|
||||
}
|
||||
}else {
|
||||
// pdf 端
|
||||
resultUrl = batteryReportResult.getPdfUrl();
|
||||
record.setPdfUrl(resultUrl);
|
||||
if (StringUtils.isNotBlank(batteryReportResult.getPdfUrl())) {
|
||||
// pdf 端
|
||||
resultUrl = batteryReportResult.getPdfUrl();
|
||||
record.setPdfUrl(resultUrl);
|
||||
}
|
||||
}
|
||||
// 保存到数据库
|
||||
chargeAlgorithmRecordService.updateChargeAlgorithmRecord(record);
|
||||
|
||||
Reference in New Issue
Block a user