Showing
1 changed file
with
4 additions
and
2 deletions
@@ -9,7 +9,6 @@ import com.yohobuy.ufo.model.order.bo.MerchantOrderAttachInfo; | @@ -9,7 +9,6 @@ import com.yohobuy.ufo.model.order.bo.MerchantOrderAttachInfo; | ||
9 | import com.yohobuy.ufo.model.order.bo.OrderInfo; | 9 | import com.yohobuy.ufo.model.order.bo.OrderInfo; |
10 | import com.yohobuy.ufo.model.order.common.OrderCodeType; | 10 | import com.yohobuy.ufo.model.order.common.OrderCodeType; |
11 | import com.yohobuy.ufo.model.order.common.OrderStatus; | 11 | import com.yohobuy.ufo.model.order.common.OrderStatus; |
12 | -import com.yohobuy.ufo.model.order.common.TabType; | ||
13 | import com.yohobuy.ufo.model.order.resp.PageResp; | 12 | import com.yohobuy.ufo.model.order.resp.PageResp; |
14 | import com.yohoufo.common.alarm.CommonAlarmEventPublisher; | 13 | import com.yohoufo.common.alarm.CommonAlarmEventPublisher; |
15 | import com.yohoufo.common.caller.UfoServiceCaller; | 14 | import com.yohoufo.common.caller.UfoServiceCaller; |
@@ -20,7 +19,6 @@ import com.yohoufo.order.common.Payment; | @@ -20,7 +19,6 @@ import com.yohoufo.order.common.Payment; | ||
20 | import com.yohoufo.order.model.request.PaymentRequest; | 19 | import com.yohoufo.order.model.request.PaymentRequest; |
21 | import com.yohoufo.order.model.response.PrepayResponse; | 20 | import com.yohoufo.order.model.response.PrepayResponse; |
22 | import com.yohoufo.order.service.cache.CacheCleaner; | 21 | import com.yohoufo.order.service.cache.CacheCleaner; |
23 | -import com.yohoufo.order.service.cache.CacheKeyBuilder; | ||
24 | import com.yohoufo.order.service.impl.PaymentServiceImpl; | 22 | import com.yohoufo.order.service.impl.PaymentServiceImpl; |
25 | import org.slf4j.Logger; | 23 | import org.slf4j.Logger; |
26 | import org.slf4j.LoggerFactory; | 24 | import org.slf4j.LoggerFactory; |
@@ -325,10 +323,14 @@ public class MerchantOrderPaymentService extends AbstractOrderPaymentService { | @@ -325,10 +323,14 @@ public class MerchantOrderPaymentService extends AbstractOrderPaymentService { | ||
325 | if (sw.getStatus() == null || sw.getStatus() == 0) { | 323 | if (sw.getStatus() == null || sw.getStatus() == 0) { |
326 | return new com.yohoufo.common.ApiResponse(400, "钱包不可用", null); | 324 | return new com.yohoufo.common.ApiResponse(400, "钱包不可用", null); |
327 | } | 325 | } |
326 | + | ||
327 | + StoredSeller storedSeller =storedSellerService.getValidStoredSeller(uid); | ||
328 | + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); | ||
328 | JSONObject result = new JSONObject(); | 329 | JSONObject result = new JSONObject(); |
329 | result.put("all", sw.getAmount().add(sw.getLockAmount()).setScale(2).toString()); | 330 | result.put("all", sw.getAmount().add(sw.getLockAmount()).setScale(2).toString()); |
330 | result.put("locked", sw.getLockAmount().setScale(2).toString()); | 331 | result.put("locked", sw.getLockAmount().setScale(2).toString()); |
331 | result.put("avail", sw.getAmount().setScale(2).toString()); | 332 | result.put("avail", sw.getAmount().setScale(2).toString()); |
333 | + result.put("entryTime",(storedSeller==null&&storedSeller.getEnterTime()>0)?"":sdf.format(storedSeller.getEnterTime())); | ||
332 | return new com.yohoufo.common.ApiResponse(200, "查询成功", result); | 334 | return new com.yohoufo.common.ApiResponse(200, "查询成功", result); |
333 | } | 335 | } |
334 | 336 |
-
Please register or login to post a comment