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) {

优化一下代码 if ordergetStatus == 61 ordergetPayAmountcompareToordergetFreightAmount == 0 && ordergetPayAmountcompareToordergetRefundAmount 0

原文地址: https://www.cveoy.top/t/topic/hrza 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录