|
@@ -2069,11 +2069,13 @@ public class BilletOriginalProductRecordController extends JeecgController<Bille
|
|
localWeight = BigDecimal.valueOf(localWeight)
|
|
localWeight = BigDecimal.valueOf(localWeight)
|
|
.setScale(4, RoundingMode.HALF_UP)
|
|
.setScale(4, RoundingMode.HALF_UP)
|
|
.doubleValue();
|
|
.doubleValue();
|
|
|
|
+
|
|
|
|
+ BilletStatisticsDetail detail = v != null ? v : new BilletStatisticsDetail(count, localWeight, size);
|
|
|
|
|
|
- BilletStatisticsDetail detail = v != null ? v :
|
|
|
|
- new BilletStatisticsDetail(0, 0.0, size);
|
|
|
|
- detail.setAmountTotal(detail.getAmountTotal() + count);
|
|
|
|
- detail.setBlankOutput(detail.getBlankOutput() + localWeight);
|
|
|
|
|
|
+ if (v != null) {
|
|
|
|
+ detail.setAmountTotal(detail.getAmountTotal() + count);
|
|
|
|
+ detail.setBlankOutput(detail.getBlankOutput() + localWeight);
|
|
|
|
+ }
|
|
return detail;
|
|
return detail;
|
|
});
|
|
});
|
|
}
|
|
}
|