Authored by mali

Merge branch 'hotfix_depositFee_20190718' into test6.9.9

@@ -2044,18 +2044,24 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon @@ -2044,18 +2044,24 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon
2044 } 2044 }
2045 } 2045 }
2046 2046
2047 - 2047 + if(resp.getAttributes().equals(OrderAttributes.QUICK_DELIVER.getCode())) {//闪购
  2048 + resp.setPickAmount(resp.getDepositAmount());
  2049 + resp.setDepositAmount("0.00");
  2050 + return;
  2051 + }
  2052 +
  2053 + resp.setPickAmount("0.00");
2048 StorageDeposit deposit = storageDepositMapper.selectByOrderCode(orderCode); 2054 StorageDeposit deposit = storageDepositMapper.selectByOrderCode(orderCode);
2049 if(null == deposit) { 2055 if(null == deposit) {
2050 return; 2056 return;
2051 } 2057 }
  2058 +
2052 DepositOrder depositOrder = depositOrderMapper.selectByDepositCode(deposit.getDepositCode()); 2059 DepositOrder depositOrder = depositOrderMapper.selectByDepositCode(deposit.getDepositCode());
2053 if(null == depositOrder) { 2060 if(null == depositOrder) {
2054 return; 2061 return;
2055 } 2062 }
2056 2063
2057 - resp.setPickAmount(null == depositOrder.getAmount() ? "-" : String.format("%.2f", depositOrder.getAmount().doubleValue()));  
2058 - 2064 + resp.setPickAmount(null == depositOrder.getAmount() ? "0.00" : String.format("%.2f", depositOrder.getAmount().doubleValue()));
2059 } 2065 }
2060 2066
2061 2067