update 电池算法应用Service

This commit is contained in:
Lemon
2025-04-16 10:17:48 +08:00
parent 91c08e4b0a
commit 1b2d17fae8
4 changed files with 206 additions and 4 deletions

View File

@@ -15,6 +15,7 @@ import com.jsowell.pile.domain.ChargeAlgorithmRecord;
import com.jsowell.pile.dto.*;
import com.jsowell.pile.service.ChargeAlgorithmRecordService;
import com.jsowell.pile.vo.base.StationInfoVO;
import com.jsowell.pile.vo.uniapp.customer.ChargeAlgorithmRecordVO;
import com.jsowell.pile.vo.uniapp.customer.OrderVO;
import com.jsowell.pile.vo.uniapp.customer.UniAppOrderVO;
import com.jsowell.service.OrderService;
@@ -402,8 +403,8 @@ public class OrderController extends BaseController {
public RestApiResponse<?> queryChargeAlgorithmRecord(HttpServletRequest request, @PathVariable("orderCode") String orderCode) {
RestApiResponse<?> response = null;
try {
ChargeAlgorithmRecord record = chargeAlgorithmRecordService.queryRecordByOrderCode(orderCode);
response = new RestApiResponse<>(ImmutableMap.of("ChargeAlgorithmRecord", record));
ChargeAlgorithmRecordVO vo = chargeAlgorithmRecordService.queryVOByOrderCode(orderCode);
response = new RestApiResponse<>(ImmutableMap.of("ChargeAlgorithmRecord", vo));
} catch (Exception e) {
logger.error("查询电池充电报告 error, ", e);
response = new RestApiResponse<>(e);