Merge branch 'test6.9.12' of git.yoho.cn:ufo/yohoufo-fore into test6.9.12
Showing
3 changed files
with
20 additions
and
19 deletions
@@ -135,19 +135,6 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { | @@ -135,19 +135,6 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { | ||
135 | //是否直接鉴定通过 | 135 | //是否直接鉴定通过 |
136 | boolean isDirectPass = false; | 136 | boolean isDirectPass = false; |
137 | 137 | ||
138 | - // 极速 不管是寄存还是发货 都需要通知卖家发货 | ||
139 | - if (fastDeliveryProxyService.isFastDeliveryGoods(orderInfo.getSkup())){ | ||
140 | - | ||
141 | - String wayBillCode = fastDeliveryProxyService.getVRWaybillCode(orderInfo.getOrderCode()); | ||
142 | - // 同时生成物流单号,通知第三方发货 | ||
143 | - fastDeliveryProxyService.order(orderInfo.getSkup(), wayBillCode); | ||
144 | - | ||
145 | - // 卖家自动发货 | ||
146 | - executors.submit(()->{ | ||
147 | - expressInfoService.deliverToDepot(orderInfo.getSellerUid(), 0, orderInfo.getOrderCode(), wayBillCode, DepotType.NJ.getCode()); | ||
148 | - }); | ||
149 | - } | ||
150 | - | ||
151 | //门店订单支付后直接完成 | 138 | //门店订单支付后直接完成 |
152 | if (BuyerOrderUtils.isOffline(orderInfo)) { | 139 | if (BuyerOrderUtils.isOffline(orderInfo)) { |
153 | targetOrderStatus = OrderStatus.DONE; | 140 | targetOrderStatus = OrderStatus.DONE; |
@@ -187,6 +174,19 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { | @@ -187,6 +174,19 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { | ||
187 | } | 174 | } |
188 | } | 175 | } |
189 | orderInfo.setStatus(orderStatusCode); | 176 | orderInfo.setStatus(orderStatusCode); |
177 | + | ||
178 | + // 极速 不管是寄存还是发货 都需要通知卖家发货 | ||
179 | + if (fastDeliveryProxyService.isFastDeliveryGoods(orderInfo.getSkup())){ | ||
180 | + | ||
181 | + String wayBillCode = fastDeliveryProxyService.getVRWaybillCode(orderInfo.getOrderCode()); | ||
182 | + // 同时生成物流单号,通知第三方发货 | ||
183 | + fastDeliveryProxyService.order(orderInfo.getSkup(), wayBillCode); | ||
184 | + | ||
185 | + // 卖家自动发货 | ||
186 | + executors.submit(()->{ | ||
187 | + expressInfoService.deliverToDepot(orderInfo.getSellerUid(), 0, orderInfo.getOrderCode(), wayBillCode, DepotType.NJ.getCode()); | ||
188 | + }); | ||
189 | + } | ||
190 | return result; | 190 | return result; |
191 | } | 191 | } |
192 | 192 |
@@ -33,6 +33,7 @@ import com.yohoufo.order.service.impl.PaymentServiceImpl; | @@ -33,6 +33,7 @@ import com.yohoufo.order.service.impl.PaymentServiceImpl; | ||
33 | import com.yohoufo.order.service.seller.setting.SellerService; | 33 | import com.yohoufo.order.service.seller.setting.SellerService; |
34 | import com.yohoufo.order.service.seller.setting.SellerWrapper; | 34 | import com.yohoufo.order.service.seller.setting.SellerWrapper; |
35 | import com.yohoufo.order.service.impl.TradeBillsService; | 35 | import com.yohoufo.order.service.impl.TradeBillsService; |
36 | +import com.yohoufo.order.utils.SellerHelper; | ||
36 | import org.apache.commons.lang3.StringUtils; | 37 | import org.apache.commons.lang3.StringUtils; |
37 | import org.slf4j.Logger; | 38 | import org.slf4j.Logger; |
38 | import org.slf4j.LoggerFactory; | 39 | import org.slf4j.LoggerFactory; |
@@ -861,7 +862,7 @@ public class MerchantOrderPaymentService extends AbstractOrderPaymentService { | @@ -861,7 +862,7 @@ public class MerchantOrderPaymentService extends AbstractOrderPaymentService { | ||
861 | private boolean isSuperWithoutLock(int uid){ | 862 | private boolean isSuperWithoutLock(int uid){ |
862 | SellerWrapper sellerWrapper = sellerService.getBaseSellerWrapper(uid); | 863 | SellerWrapper sellerWrapper = sellerService.getBaseSellerWrapper(uid); |
863 | SellerBo sellerBo = sellerWrapper.buildSellerBo(); | 864 | SellerBo sellerBo = sellerWrapper.buildSellerBo(); |
864 | - return sellerBo.isNormalSuper() || sellerBo.isLargeSettlementSuper(); | 865 | + return SellerHelper.isSuper(sellerBo.getEntrySellerType()); |
865 | } | 866 | } |
866 | 867 | ||
867 | private static class CalculateNode{ | 868 | private static class CalculateNode{ |
@@ -2017,9 +2017,9 @@ public class ProductServiceImpl implements ProductService { | @@ -2017,9 +2017,9 @@ public class ProductServiceImpl implements ProductService { | ||
2017 | Map<String, List<GoodsBO>> tabs = new HashMap<>(); | 2017 | Map<String, List<GoodsBO>> tabs = new HashMap<>(); |
2018 | tabs.put("goods_list", Arrays.asList(goodsBO)); | 2018 | tabs.put("goods_list", Arrays.asList(goodsBO)); |
2019 | tabs.put("pre_sale_goods_list", Arrays.asList(preSaleGoodsBO)); | 2019 | tabs.put("pre_sale_goods_list", Arrays.asList(preSaleGoodsBO)); |
2020 | - tabs.put("seconds_goods_list", Arrays.asList(goodsBO)); | 2020 | + tabs.put("seconds_goods_list", Arrays.asList(secondsGoodsBO)); |
2021 | product_info.setGoodsListTabs(tabs); | 2021 | product_info.setGoodsListTabs(tabs); |
2022 | - product_info.setGoodsList(null); | 2022 | + allGoodsBO.setSizeList(allSizeList); |
2023 | } | 2023 | } |
2024 | } | 2024 | } |
2025 | 2025 | ||
@@ -2124,9 +2124,9 @@ public class ProductServiceImpl implements ProductService { | @@ -2124,9 +2124,9 @@ public class ProductServiceImpl implements ProductService { | ||
2124 | } | 2124 | } |
2125 | return sp2; | 2125 | return sp2; |
2126 | } | 2126 | } |
2127 | - private boolean notAllNull(Object... obj) { | ||
2128 | - for (Object o : obj) { | ||
2129 | - if (o != null) { | 2127 | + private boolean notAllNull(Integer... numbers) { |
2128 | + for (Integer n : numbers) { | ||
2129 | + if (n != null && n > 0) { | ||
2130 | return true; | 2130 | return true; |
2131 | } | 2131 | } |
2132 | } | 2132 | } |
-
Please register or login to post a comment