double purchaseQuantity = vo.getPurchaseQuantity() == null ? 0 : vo.getPurchaseQuantity();\n double cucurrentIncompleteQuantity = purchaseQuantity - vo.getCurrentPeriodQuantity();\n vo.setCucurrentIncompleteQuantity(cucurrentIncompleteQuantity);\n double cucurrentIncompletePercentage = vo.getCurrentPeriodQuantity() == 0 ? 0 : cucurrentIncompleteQuantity / vo.getCurrentPeriodQuantity();\n vo.setCucurrentIncompletePercentage(decimalFormat.format(cucurrentIncompletePercentage));

Java 代码优化:计算当前周期未完成数量和百分比

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

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