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:
@@ -3721,9 +3721,11 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
||||
public List<SupStationStatsVO> queryOrderListByStationId(String stationId) {
|
||||
List<SupStationStatsVO> orderVOS = orderBasicInfoMapper.queryOrderListByStationId(stationId);
|
||||
for (SupStationStatsVO orderVO : orderVOS) {
|
||||
// 计算每笔订单充电时长(分钟)
|
||||
long intervalTime = DateUtils.intervalTime(orderVO.getStartTime(), orderVO.getEndTime());
|
||||
orderVO.setChargingTime(Integer.parseInt(String.valueOf(intervalTime)));
|
||||
if (StringUtils.isNotBlank(orderVO.getStartTime()) && StringUtils.isNotBlank(orderVO.getEndTime())) {
|
||||
// 计算每笔订单充电时长(分钟)
|
||||
long intervalTime = DateUtils.intervalTime(orderVO.getStartTime(), orderVO.getEndTime());
|
||||
orderVO.setChargingTime(Integer.parseInt(String.valueOf(intervalTime)));
|
||||
}
|
||||
}
|
||||
return orderVOS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user