mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update
This commit is contained in:
@@ -471,9 +471,11 @@ public class OrderService {
|
||||
String chargingTime = "0分钟";
|
||||
if (orderVO.getStartTime() != null) {
|
||||
Date startTimeDate = DateUtils.parseDate(orderVO.getStartTime());
|
||||
Date endTimeDate = new Date();
|
||||
Date endTimeDate;
|
||||
if (orderVO.getEndTime() != null) {
|
||||
endTimeDate = DateUtils.parseDate(orderVO.getEndTime());
|
||||
} else {
|
||||
endTimeDate = new Date();
|
||||
}
|
||||
// 计算出两个时间差
|
||||
chargingTime = DateUtils.getDatePoor(endTimeDate, startTimeDate);
|
||||
|
||||
Reference in New Issue
Block a user