Showing
1 changed file
with
3 additions
and
12 deletions
@@ -21,7 +21,6 @@ import org.springframework.stereotype.Service; | @@ -21,7 +21,6 @@ import org.springframework.stereotype.Service; | ||
21 | import com.alibaba.fastjson.JSONObject; | 21 | import com.alibaba.fastjson.JSONObject; |
22 | import com.yoho.core.common.utils.DateUtil; | 22 | import com.yoho.core.common.utils.DateUtil; |
23 | import com.yoho.core.rest.client.ServiceCaller; | 23 | import com.yoho.core.rest.client.ServiceCaller; |
24 | -import com.yoho.core.rest.governance.ServiceStragetyFinder; | ||
25 | import com.yoho.order.dal.AppraiseAddressMapper; | 24 | import com.yoho.order.dal.AppraiseAddressMapper; |
26 | import com.yoho.order.dal.AreaMapper; | 25 | import com.yoho.order.dal.AreaMapper; |
27 | import com.yoho.order.dal.BuyerOrderGoodsMapper; | 26 | import com.yoho.order.dal.BuyerOrderGoodsMapper; |
@@ -113,9 +112,6 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | @@ -113,9 +112,6 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | ||
113 | @Autowired | 112 | @Autowired |
114 | private ServiceCaller serviceCaller; | 113 | private ServiceCaller serviceCaller; |
115 | 114 | ||
116 | - @Autowired | ||
117 | - private ServiceStragetyFinder serviceStragetyFinder; | ||
118 | - | ||
119 | private static final String BUYER_ORDER_META_KEY_DELIVERY_ADDRESS = "delivery_address"; | 115 | private static final String BUYER_ORDER_META_KEY_DELIVERY_ADDRESS = "delivery_address"; |
120 | 116 | ||
121 | private static final String SELLER_ORDER_META_KEY_BACK_DELIVERY_ADDRESS = "back_delivery_address"; | 117 | private static final String SELLER_ORDER_META_KEY_BACK_DELIVERY_ADDRESS = "back_delivery_address"; |
@@ -347,7 +343,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | @@ -347,7 +343,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | ||
347 | resp.setOrderCode(buyerOrder.getOrderCode()); | 343 | resp.setOrderCode(buyerOrder.getOrderCode()); |
348 | resp.setStatus(buyerOrder.getStatus()); | 344 | resp.setStatus(buyerOrder.getStatus()); |
349 | resp.setStatusStr(convertOrderStatus(buyerOrder.getStatus())); | 345 | resp.setStatusStr(convertOrderStatus(buyerOrder.getStatus())); |
350 | - resp.setPayStatus(buyerOrder.getStatus().byteValue() == Constant.BUYER_ORDER_STATUS_BUYER_NOT_PAY.getByteVal() ? "未支付" : "已支付");//支付状态 | 346 | + resp.setPayStatus("未支付");//支付状态 |
351 | resp.setCreateTimeStr(DateUtil.long2DateStr(buyerOrder.getCreateTime().longValue()*1000, "yyyy-MM-dd HH:mm:ss")); | 347 | resp.setCreateTimeStr(DateUtil.long2DateStr(buyerOrder.getCreateTime().longValue()*1000, "yyyy-MM-dd HH:mm:ss")); |
352 | resp.setBuyerUid(buyerOrder.getUid()); | 348 | resp.setBuyerUid(buyerOrder.getUid()); |
353 | 349 | ||
@@ -359,6 +355,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | @@ -359,6 +355,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | ||
359 | OrdersPay ordersPay = ordersPayMapper.selectByOrderCode(buyerOrder.getOrderCode()); | 355 | OrdersPay ordersPay = ordersPayMapper.selectByOrderCode(buyerOrder.getOrderCode()); |
360 | if(null != ordersPay) { | 356 | if(null != ordersPay) { |
361 | resp.setPayTime(DateUtil.long2DateStr(ordersPay.getCreateTime().longValue()*1000, "yyyy-MM-dd HH:mm:ss")); | 357 | resp.setPayTime(DateUtil.long2DateStr(ordersPay.getCreateTime().longValue()*1000, "yyyy-MM-dd HH:mm:ss")); |
358 | + resp.setPayStatus("已支付"); | ||
362 | } | 359 | } |
363 | } | 360 | } |
364 | 361 | ||
@@ -494,12 +491,6 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | @@ -494,12 +491,6 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | ||
494 | return Lists.newArrayList(); | 491 | return Lists.newArrayList(); |
495 | } | 492 | } |
496 | 493 | ||
497 | -// if(parentCode.length() == 6 && parentCode.substring(2, 6).equals("0000")) { | ||
498 | -// parentCode = parentCode.substring(0, 2); | ||
499 | -// }else if(parentCode.length() == 6 && parentCode.substring(4,6).equals("00")) { | ||
500 | -// parentCode = parentCode.substring(0, 4); | ||
501 | -// } | ||
502 | - | ||
503 | List<Area> areaList = areaMapper.selectByParentCode(parentCode); | 494 | List<Area> areaList = areaMapper.selectByParentCode(parentCode); |
504 | List<JSONObject> result = new ArrayList<>(); | 495 | List<JSONObject> result = new ArrayList<>(); |
505 | for (Area area : areaList) { | 496 | for (Area area : areaList) { |
@@ -747,7 +738,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | @@ -747,7 +738,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | ||
747 | } | 738 | } |
748 | 739 | ||
749 | // if(StringUtils.isNotEmpty(req.getSellerWaybillCode())) { | 740 | // if(StringUtils.isNotEmpty(req.getSellerWaybillCode())) { |
750 | -// List<ExpressRecord> expressRecordList = expressRecordMapper.selectByWaybillCode(req.getSellerWaybillCode()); | 741 | +// List<ExpressRecord> expressRecordList = expressoRecordMapper.selectByWaybillCode(req.getSellerWaybillCode()); |
751 | // if(CollectionUtils.isEmpty(expressRecordList)) { | 742 | // if(CollectionUtils.isEmpty(expressRecordList)) { |
752 | // return false; | 743 | // return false; |
753 | // }else { | 744 | // }else { |
-
Please register or login to post a comment