mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
update 电池算法应用Service
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user