zhangyuewww 3 년 전
부모
커밋
b83248b59a

+ 1 - 1
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/WarehouseBaseInfoServiceImpl.java

@@ -176,7 +176,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
 //                                            else{
 //                                                netWeight = Float.valueOf(netWeight) + Float.valueOf(warehouse.getType().equals("潮粮") ?warehouse.getPureWeight():warehouse.getNetWeight());
 //                                            }
-                                            netWeight = (float)(Math.round(netWeight*100))/100+(float)(Math.round(warehouse.getNetWeight()*100))/100;
+                                            netWeight = (float)(Math.round(netWeight*1000))/1000+(float)(Math.round(warehouse.getNetWeight()*1000))/1000;
                                            }
                                         warehouseNumView.setGoodsName(warehouseInOutInfoAllList.get(0).getGoodsName());
                                         DecimalFormat decimalFormat=new DecimalFormat(".000");//构造方法的字符格式这里如果小数不足2位,会以0补足.