This commit is contained in:
Lemon
2024-08-09 19:33:32 +08:00
parent 13e8593a7c
commit 9af7327f47
2 changed files with 6 additions and 3 deletions

View File

@@ -91,7 +91,7 @@ public class BusinessStationInfoController extends BaseController {
} }
/** /**
* 查询订单数量趋势信息 * 查询站点订单数量趋势信息
* @return * @return
*/ */
@PostMapping("/getStationOrderQuantityInfo") @PostMapping("/getStationOrderQuantityInfo")
@@ -101,10 +101,10 @@ public class BusinessStationInfoController extends BaseController {
StationBusinessAnalyzeInfoVO vo = pileStationInfoService.getStationOrderQuantityInfo(dto); StationBusinessAnalyzeInfoVO vo = pileStationInfoService.getStationOrderQuantityInfo(dto);
response = new RestApiResponse<>(ImmutableMap.of("stationBusinessAnalyzeInfoVO", vo)); response = new RestApiResponse<>(ImmutableMap.of("stationBusinessAnalyzeInfoVO", vo));
} catch (Exception e) { } catch (Exception e) {
logger.error("查询订单数量趋势信息 error", e); logger.error("查询站点订单数量趋势信息 error", e);
response = new RestApiResponse<>(e); response = new RestApiResponse<>(e);
} }
logger.info("查询订单数量趋势信息 params:{}, result:{}", JSONObject.toJSONString(dto), response); logger.info("查询站点订单数量趋势信息 params:{}, result:{}", JSONObject.toJSONString(dto), response);
return response; return response;
} }
} }

View File

@@ -518,6 +518,9 @@ public class PileReservationInfoServiceImpl implements PileReservationInfoServic
@Override @Override
public PileReservationInfoVO queryReservationInfo(PileReservationDTO dto) { public PileReservationInfoVO queryReservationInfo(PileReservationDTO dto) {
PileReservationInfo pileReservationInfo = pileReservationInfoMapper.selectByPileConnectorCode(dto.getPileConnectorCode()); PileReservationInfo pileReservationInfo = pileReservationInfoMapper.selectByPileConnectorCode(dto.getPileConnectorCode());
if (pileReservationInfo == null) {
return null;
}
PileReservationInfoVO build = PileReservationInfoVO.builder() PileReservationInfoVO build = PileReservationInfoVO.builder()
.reservedId(pileReservationInfo.getId() + "") .reservedId(pileReservationInfo.getId() + "")
.pileSn(pileReservationInfo.getPileSn()) .pileSn(pileReservationInfo.getPileSn())