update 电池充电报告Service

This commit is contained in:
Lemon
2025-09-11 13:23:01 +08:00
parent cc2d09b157
commit 8047a3c149
10 changed files with 605 additions and 58 deletions

View File

@@ -3,12 +3,11 @@ 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.thirdparty.platform.dto.BatteryChargeReportDTO;
import com.jsowell.thirdparty.platform.service.impl.BatteryChargeReportService;
import com.jsowell.thirdparty.platform.service.impl.ChargeAlgorithmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
/**
* 算法应用Controller
@@ -24,11 +23,15 @@ public class ChargeAlgorithmController extends BaseController {
@Autowired
private ChargeAlgorithmService chargeAlgorithmService;
@GetMapping("/pushOrderInfo/{orderCode}")
public RestApiResponse<?> pushOrderInfo(@PathVariable("orderCode") String orderCode) {
@Autowired
private BatteryChargeReportService batteryChargeReportService;
@PostMapping("/pushOrderInfo")
public RestApiResponse<?> pushOrderInfo(@RequestBody BatteryChargeReportDTO dto) {
RestApiResponse<?> response = null;
try {
String result = chargeAlgorithmService.pushOrderInfo(orderCode);
// String result = chargeAlgorithmService.pushOrderInfo(orderCode);
String result = batteryChargeReportService.pushChargeData(dto.getOrderCode(), dto.getReportType());
response = new RestApiResponse<>(result);
}catch (Exception e) {
logger.error("算法应用推送订单信息 error, ", e);

View File

@@ -249,13 +249,19 @@ parking:
orgId: BTTEST01
# 充电算法平台配置
chargeAlgorithm:
url: http://150.158.199.92:58910/gateway/api/user/battery/algorithm/json
clientId: e488bac5f70b496fa2d82065089e5f81
chargeAlgorithm2pdf:
url: https://wx.btiger.net/jeecg-boot
getTaskIdUrl: /api/docking/api/evaluate
getPdfLinkUrl: /api/docking/report/pdf/
#chargeAlgorithm:
# url: http://150.158.199.92:58910/gateway/api/user/battery/algorithm/json
# clientId: e488bac5f70b496fa2d82065089e5f81
#chargeAlgorithm2pdf:
# url: https://wx.btiger.net/jeecg-boot
# getTaskIdUrl: /api/docking/api/evaluate
# getPdfLinkUrl: /api/docking/report/pdf/
# token: MTc0NzcyMjgwMzg0NC1xNmFucG96cHR4aQ==
batteryChargeReport:
webDomainPrefix: https://wx.btiger.net/jeecg-boot
getTaskIdApi: /api/docking/api/evaluate
apiPrefix: /api/docking/report/
token: MTc0NzcyMjgwMzg0NC1xNmFucG96cHR4aQ==
# dubbo配置

View File

@@ -244,13 +244,19 @@ parking:
orgId: DCWYPROD20250210
# 充电算法平台配置
chargeAlgorithm:
url: http://150.158.199.92:58910/gateway/api/user/battery/algorithm/json
clientId: e488bac5f70b496fa2d82065089e5f81
chargeAlgorithm2pdf:
url: https://wx.btiger.net/jeecg-boot
getTaskIdUrl: /api/docking/api/evaluate
getPdfLinkUrl: /api/docking/report/pdf/
#chargeAlgorithm:
# url: http://150.158.199.92:58910/gateway/api/user/battery/algorithm/json
# clientId: e488bac5f70b496fa2d82065089e5f81
#chargeAlgorithm2pdf:
# url: https://wx.btiger.net/jeecg-boot
# getTaskIdUrl: /api/docking/api/evaluate
# getPdfLinkUrl: /api/docking/report/pdf/
# token: MTc0NzcyMjgwMzg0NC1xNmFucG96cHR4aQ==
batteryChargeReport:
webDomainPrefix: https://wx.btiger.net/jeecg-boot
getTaskIdApi: /api/docking/api/evaluate
apiPrefix: /api/docking/report/
token: MTc0NzcyMjgwMzg0NC1xNmFucG96cHR4aQ==
# dubbo配置

View File

@@ -249,13 +249,19 @@ parking:
orgId: BTTEST01
# 充电算法平台配置
chargeAlgorithm:
url: http://150.158.199.92:58910/gateway/api/user/battery/algorithm/json
clientId: e488bac5f70b496fa2d82065089e5f81
chargeAlgorithm2pdf:
url: https://wx.btiger.net/jeecg-boot
getTaskIdUrl: /api/docking/api/evaluate
getPdfLinkUrl: /api/docking/report/pdf/
#chargeAlgorithm:
# url: http://150.158.199.92:58910/gateway/api/user/battery/algorithm/json
# clientId: e488bac5f70b496fa2d82065089e5f81
#chargeAlgorithm2pdf:
# url: https://wx.btiger.net/jeecg-boot
# getTaskIdUrl: /api/docking/api/evaluate
# getPdfLinkUrl: /api/docking/report/pdf/
# token: MTc0NzcyMjgwMzg0NC1xNmFucG96cHR4aQ==
batteryChargeReport:
webDomainPrefix: https://wx.btiger.net/jeecg-boot
getTaskIdApi: /api/docking/api/evaluate
apiPrefix: /api/docking/report/
token: MTc0NzcyMjgwMzg0NC1xNmFucG96cHR4aQ==
# dubbo配置

View File

@@ -247,9 +247,15 @@ parking:
orgId: BTTEST01
# 充电算法平台配置
chargeAlgorithm:
url: http://150.158.199.92:58910/gateway/api/user/battery/algorithm/json
clientId: e488bac5f70b496fa2d82065089e5f81
#chargeAlgorithm:
# url: http://150.158.199.92:58910/gateway/api/user/battery/algorithm/json
# clientId: e488bac5f70b496fa2d82065089e5f81
batteryChargeReport:
webDomainPrefix: https://wx.btiger.net/jeecg-boot
getTaskIdApi: /api/docking/api/evaluate
apiPrefix: /api/docking/report/
token: MTc0NzcyMjgwMzg0NC1xNmFucG96cHR4aQ==
# dubbo配置
dubbo:

View File

@@ -144,12 +144,18 @@ wulian:
WuLianSimRenew: api.v2.order.renew
# 充电算法平台配置
chargeAlgorithm:
url: http://150.158.199.92:58910/gateway/api/user/battery/algorithm/json
clientId: e488bac5f70b496fa2d82065089e5f81
chargeAlgorithm2pdf:
getTaskIdUrl: /api/docking/api/evaluate
getPdfLinkUrl: /api/docking/report/pdf/
#chargeAlgorithm:
# url: http://150.158.199.92:58910/gateway/api/user/battery/algorithm/json
# clientId: e488bac5f70b496fa2d82065089e5f81
#chargeAlgorithm2pdf:
# getTaskIdUrl: /api/docking/api/evaluate
# getPdfLinkUrl: /api/docking/report/pdf/
# token: MTc0NzcyMjgwMzg0NC1xNmFucG96cHR4aQ==
batteryChargeReport:
webDomainPrefix: https://wx.btiger.net/jeecg-boot
getTaskIdApi: /api/docking/api/evaluate
apiPrefix: /api/docking/report/
token: MTc0NzcyMjgwMzg0NC1xNmFucG96cHR4aQ==
# sms4j