int orderStatus = order.getStatus(); boolean isPayAmountEqualToFreightAmount = payAmount.compareTo(freightAmount) == 0; boolean isPayAmountGreaterThanRefundAmount = payAmount.compareTo(refundAmount) > 0;

if ((orderStatus == 61 || isPayAmountEqualToFreightAmount) && isPayAmountGreaterThanRefundAmount) {

优化一下代码 if ordergetStatus == 61 payAmountcompareTofreightAmount == 0 && payAmountcompareTorefundAmount 0

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

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