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