Java代码优化:简化获取和计算数量
double purchaseQuantity = vo.getPurchaseQuantity() != null ? vo.getPurchaseQuantity() : 0; \u000ddouble cucurrentIncompleteQuantity = purchaseQuantity - vo.getCurrentPeriodQuantity(); \u000dvo.setCucurrentIncompleteQuantity(cucurrentIncompleteQuantity); \u000dvo.setCucurrentIncompletePercentage(decimalFormat.format(cucurrentIncompleteQuantity / vo.getCurrentPeriodQuantity()));
原文地址: https://www.cveoy.top/t/topic/p3k4 著作权归作者所有。请勿转载和采集!