bugfix 查询订单列表确定站点id查询条件

This commit is contained in:
Lemon
2023-09-27 10:08:12 +08:00
parent d9e5b2ed36
commit 3dcc0e2fa5

View File

@@ -374,9 +374,6 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
if (CollectionUtils.isNotEmpty(dto.getStationIdList())) {
stationIdList.addAll(dto.getStationIdList());
}
if (StringUtils.isNotBlank(dto.getStationId())) {
stationIdList.add(dto.getStationId());
}
if (StringUtils.isNotBlank(dto.getMerchantId())) {
List<PileStationInfo> pileStationInfos = pileStationInfoService.selectStationListByMerchantId(Long.parseLong(dto.getMerchantId()));
if (CollectionUtils.isNotEmpty(pileStationInfos)) {
@@ -386,6 +383,10 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
stationIdList.addAll(collect);
}
}
if (StringUtils.isNotBlank(dto.getStationId())) {
stationIdList.clear();
stationIdList.add(dto.getStationId());
}
OrderTotalDataVO vo = new OrderTotalDataVO();
String startTime = dto.getStartTime() == null ? DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD, DateUtils.addDays(new Date(), -7)) : dto.getStartTime(); // 2023-08-16 00:00:00