Authored by chenchao

add zero

@@ -188,7 +188,21 @@ public class SellerDepositOrderListService extends AbsOrderViewService { @@ -188,7 +188,21 @@ public class SellerDepositOrderListService extends AbsOrderViewService {
188 188
189 AppraiseOrderStatus appraiseOrderStatus = AppraiseOrderStatus.getByCode(pao.getStatus()); 189 AppraiseOrderStatus appraiseOrderStatus = AppraiseOrderStatus.getByCode(pao.getStatus());
190 OrderAttributes oa = OrderAttributes.getOrderAttributes(pao.getAttributes()); 190 OrderAttributes oa = OrderAttributes.getOrderAttributes(pao.getAttributes());
191 - String refundEarnestMoney = ordersPayRefund == null? null : ordersPayRefund.getAmount().toPlainString(); 191 + boolean notRefund = ordersPayRefund == null;
  192 + String refundEarnestMoney = notRefund ? null : ordersPayRefund.getAmount().toPlainString();
  193 + switch (appraiseOrderStatus){
  194 + case CHECKING_FAKE:
  195 + if (notRefund){
  196 + refundEarnestMoney = BigDecimal.ZERO.toPlainString();
  197 + }
  198 + break;
  199 + case JUDGE_PASS_WAIT_WAREHOUSE:
  200 + if (notRefund){
  201 + refundEarnestMoney = BigDecimal.ZERO.toPlainString();
  202 + }
  203 + break;
  204 + }
  205 +
192 GoodsVo goods = GoodsVo.builder() 206 GoodsVo goods = GoodsVo.builder()
193 .productName(paog.getProductName()) 207 .productName(paog.getProductName())
194 .imgUrl(ImageUrlAssist.getProductFullPicUrlWithDefaultSetting(paog.getImageUrl())) 208 .imgUrl(ImageUrlAssist.getProductFullPicUrlWithDefaultSetting(paog.getImageUrl()))