优化代码:判断订单状态和金额
int status = order.getStatus(); BigDecimal payAmount = order.getPayAmount(); BigDecimal freightAmount = order.getFreightAmount(); BigDecimal refundAmount = order.getRefundAmount(); if ((status == 61 || payAmount.compareTo(freightAmount) == 0) && payAmount.compareTo(refundAmount) > 0) {
原文地址: https://www.cveoy.top/t/topic/oUpB 著作权归作者所有。请勿转载和采集!