mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 20:15:06 +08:00
update
This commit is contained in:
@@ -117,4 +117,15 @@ public class QueryOrderDTO extends BaseEntity {
|
||||
* 排除的站点Id列表
|
||||
*/
|
||||
private List<Integer> excludeStationIdList;
|
||||
|
||||
/**
|
||||
* 启动方式
|
||||
* (0-后管启动;1-用户app启动;2-卡启动;3-离线卡启动; 4-第三方平台启动; 5-车辆vin码启动)
|
||||
*/
|
||||
private String startMode;
|
||||
|
||||
/**
|
||||
* 站点名称(用于模糊查询)
|
||||
*/
|
||||
private String stationName;
|
||||
}
|
||||
|
||||
@@ -37,6 +37,12 @@ public class QueryBusinessOrderDTO {
|
||||
*/
|
||||
private String orderStatus;
|
||||
|
||||
/**
|
||||
* 启动方式
|
||||
* (0-后管启动;1-用户app启动;2-卡启动;3-离线卡启动; 4-第三方平台启动; 5-车辆vin码启动)
|
||||
*/
|
||||
private String startMode;
|
||||
|
||||
/**
|
||||
* 页码(默认1)
|
||||
*/
|
||||
|
||||
@@ -6276,30 +6276,19 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_SELECT_INFO_IS_NULL);
|
||||
}
|
||||
|
||||
// 根据站点名称过滤
|
||||
List<String> stationIdList = new ArrayList<>();
|
||||
if (StringUtils.isNotBlank(dto.getStationName())) {
|
||||
List<PileStationInfo> filteredStations = allStations.stream()
|
||||
.filter(s -> s.getStationName() != null && s.getStationName().contains(dto.getStationName()))
|
||||
.collect(Collectors.toList());
|
||||
if (CollectionUtils.isEmpty(filteredStations)) {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_SELECT_INFO_IS_NULL);
|
||||
}
|
||||
stationIdList = filteredStations.stream()
|
||||
.map(s -> String.valueOf(s.getId()))
|
||||
.collect(Collectors.toList());
|
||||
} else {
|
||||
stationIdList = allStations.stream()
|
||||
.map(s -> String.valueOf(s.getId()))
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
// 获取所有站点ID列表
|
||||
List<String> stationIdList = allStations.stream()
|
||||
.map(s -> String.valueOf(s.getId()))
|
||||
.collect(Collectors.toList());
|
||||
|
||||
// 构建QueryOrderDTO
|
||||
// 构建QueryOrderDTO(包含启动方式和站点名称,由SQL进行过滤)
|
||||
QueryOrderDTO queryOrderDTO = QueryOrderDTO.builder()
|
||||
.stationIdList(stationIdList)
|
||||
.startTime(dto.getCreateTime())
|
||||
.endTime(dto.getEndTime())
|
||||
.orderStatus(dto.getOrderStatus())
|
||||
.startMode(dto.getStartMode())
|
||||
.stationName(dto.getStationName())
|
||||
.build();
|
||||
|
||||
// 1. 分页参数处理
|
||||
|
||||
Reference in New Issue
Block a user