|
@@ -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补足.
|