mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-08 20:10:16 +08:00
update 订单日报计算前一天结算完成的订单
This commit is contained in:
@@ -1984,20 +1984,17 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
if (StringUtils.isBlank(stationId)) {
|
if (StringUtils.isBlank(stationId)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
PileStationVO stationInfo = pileStationInfoService.getStationInfo(stationId);
|
|
||||||
// 查询站点前一天结算完成的订单
|
|
||||||
QueryOrderDTO dto = new QueryOrderDTO();
|
|
||||||
dto.setStationId(stationId);
|
|
||||||
|
|
||||||
if (StringUtils.isBlank(tradeDate)) {
|
if (StringUtils.isBlank(tradeDate)) {
|
||||||
// 日期为空默认昨天
|
// 日期为空默认昨天
|
||||||
tradeDate = LocalDate.now().plusDays(-1).toString();
|
tradeDate = LocalDate.now().plusDays(-1).toString();
|
||||||
}
|
}
|
||||||
|
PileStationVO stationInfo = pileStationInfoService.getStationInfo(stationId);
|
||||||
|
// 查询站点前一天结算完成的订单
|
||||||
|
QueryOrderDTO dto = new QueryOrderDTO();
|
||||||
|
dto.setStationId(stationId);
|
||||||
LocalDate parse = LocalDate.parse(tradeDate, DateTimeFormatter.ofPattern("yyyy-MM-dd"));
|
LocalDate parse = LocalDate.parse(tradeDate, DateTimeFormatter.ofPattern("yyyy-MM-dd"));
|
||||||
String startTime = DateUtils.formatDateTime(LocalDateTime.of(parse, LocalTime.MIN));
|
String startTime = DateUtils.formatDateTime(LocalDateTime.of(parse, LocalTime.MIN));
|
||||||
String endTime = DateUtils.formatDateTime(LocalDateTime.of(parse, LocalTime.MAX));
|
String endTime = DateUtils.formatDateTime(LocalDateTime.of(parse, LocalTime.MAX));
|
||||||
|
|
||||||
dto.setStartSettleTime(startTime);
|
dto.setStartSettleTime(startTime);
|
||||||
dto.setEndSettleTime(endTime);
|
dto.setEndSettleTime(endTime);
|
||||||
List<OrderListVO> orderListVOS = orderBasicInfoMapper.selectOrderBasicInfoList(dto);
|
List<OrderListVO> orderListVOS = orderBasicInfoMapper.selectOrderBasicInfoList(dto);
|
||||||
|
|||||||
Reference in New Issue
Block a user