|
|
@@ -91,10 +91,10 @@ public class GxtMobileOrderController extends BaseController
|
|
|
// 只处理维保工单(orderType == 2)
|
|
|
if (order.getOrderType() == 2) {
|
|
|
// accept_time为空,并且当前时间超过assign_time
|
|
|
- if (order.getAcceptTime() == null && order.getAssignTime() != null &&
|
|
|
- now.after(order.getAssignTime())) {
|
|
|
+ if (order.getAcceptTime() == null && order.getUpdateTime() != null &&
|
|
|
+ now.after(order.getUpdateTime())) {
|
|
|
// 计算超过的时间(按分钟计算)
|
|
|
- long diffInMillis = now.getTime() - order.getAssignTime().getTime();
|
|
|
+ long diffInMillis = now.getTime() - order.getUpdateTime().getTime();
|
|
|
long diffInMinutes = TimeUnit.MINUTES.convert(diffInMillis, TimeUnit.MILLISECONDS);
|
|
|
|
|
|
// 计算超时时间并格式化为X天X小时X分钟格式
|
|
|
@@ -117,11 +117,10 @@ public class GxtMobileOrderController extends BaseController
|
|
|
}
|
|
|
// 维修工单的超时逻辑
|
|
|
else if (order.getOrderType() == 1) {
|
|
|
- // 对于维修工单,同样检查accept_time为空且当前时间超过assign_time
|
|
|
- if (order.getAcceptTime() == null && order.getAssignTime() != null &&
|
|
|
- now.after(order.getAssignTime())) {
|
|
|
+ // 对于维修工单,同样当前时间超过update_time
|
|
|
+ if (order.getUpdateTime() != null && now.after(order.getUpdateTime())) {
|
|
|
// 计算超过的时间(按分钟计算)
|
|
|
- long diffInMillis = now.getTime() - order.getAssignTime().getTime();
|
|
|
+ long diffInMillis = now.getTime() - order.getUpdateTime().getTime();
|
|
|
long diffInMinutes = TimeUnit.MINUTES.convert(diffInMillis, TimeUnit.MILLISECONDS);
|
|
|
|
|
|
// 计算超时时间并格式化为X天X小时X分钟格式
|