1
|
package com.yohoufo.order.service.impl;
|
1
|
package com.yohoufo.order.service.impl;
|
2
|
|
2
|
|
3
|
import com.alibaba.fastjson.JSONObject;
|
3
|
import com.alibaba.fastjson.JSONObject;
|
|
|
4
|
+import com.yohobuy.ufo.model.order.common.ButtonShow;
|
4
|
import com.yohobuy.ufo.model.order.common.OrderStatus;
|
5
|
import com.yohobuy.ufo.model.order.common.OrderStatus;
|
5
|
import com.yohobuy.ufo.model.order.common.TabType;
|
6
|
import com.yohobuy.ufo.model.order.common.TabType;
|
6
|
import com.yohobuy.ufo.model.order.resp.ExpressInfoDetail;
|
7
|
import com.yohobuy.ufo.model.order.resp.ExpressInfoDetail;
|
|
@@ -125,6 +126,10 @@ public class BuyerOrderDetailService extends AbsOrderDetailService implements IO |
|
@@ -125,6 +126,10 @@ public class BuyerOrderDetailService extends AbsOrderDetailService implements IO |
125
|
Integer leftTime = getLeftTime(TabType.BUY, orderDetailInfo.getUid(), orderDetailInfo.getOrderCode(),
|
126
|
Integer leftTime = getLeftTime(TabType.BUY, orderDetailInfo.getUid(), orderDetailInfo.getOrderCode(),
|
126
|
orderDetailInfo.getStatusDetail().getStatus(), orderDetailInfo.getSecendLevelCreateTime());
|
127
|
orderDetailInfo.getStatusDetail().getStatus(), orderDetailInfo.getSecendLevelCreateTime());
|
127
|
|
128
|
|
|
|
129
|
+ if (leftTime!=null && leftTime<=0){
|
|
|
130
|
+ orderDetailInfo.getButtons().removeIf(x -> x!=null && ButtonShow.NOW_BUY.getCode().equals(x.getCode()));
|
|
|
131
|
+ }
|
|
|
132
|
+
|
128
|
orderDetailInfo.getStatusDetail().setLeftTime(leftTime);
|
133
|
orderDetailInfo.getStatusDetail().setLeftTime(leftTime);
|
129
|
}
|
134
|
}
|
130
|
|
135
|
|