Authored by chenchao

add zero

... ... @@ -188,7 +188,21 @@ public class SellerDepositOrderListService extends AbsOrderViewService {
AppraiseOrderStatus appraiseOrderStatus = AppraiseOrderStatus.getByCode(pao.getStatus());
OrderAttributes oa = OrderAttributes.getOrderAttributes(pao.getAttributes());
String refundEarnestMoney = ordersPayRefund == null? null : ordersPayRefund.getAmount().toPlainString();
boolean notRefund = ordersPayRefund == null;
String refundEarnestMoney = notRefund ? null : ordersPayRefund.getAmount().toPlainString();
switch (appraiseOrderStatus){
case CHECKING_FAKE:
if (notRefund){
refundEarnestMoney = BigDecimal.ZERO.toPlainString();
}
break;
case JUDGE_PASS_WAIT_WAREHOUSE:
if (notRefund){
refundEarnestMoney = BigDecimal.ZERO.toPlainString();
}
break;
}
GoodsVo goods = GoodsVo.builder()
.productName(paog.getProductName())
.imgUrl(ImageUrlAssist.getProductFullPicUrlWithDefaultSetting(paog.getImageUrl()))
... ...