|
@@ -607,7 +607,7 @@ public class ProduceReportServiceImpl extends BaseServiceImpl<ProduceReportMappe
|
|
report.setDataId(produceData.getId());
|
|
report.setDataId(produceData.getId());
|
|
|
|
|
|
// 数据除以1000,换算成吨
|
|
// 数据除以1000,换算成吨
|
|
- total = total.divide(new BigDecimal(1000)).setScale(2);
|
|
|
|
|
|
+ total = total.divide(new BigDecimal(1000)).setScale(2, RoundingMode.HALF_UP);
|
|
report.setValue(total.toString());
|
|
report.setValue(total.toString());
|
|
report.setYear(date.getYear());
|
|
report.setYear(date.getYear());
|
|
report.setMonth(date.getMonthValue());
|
|
report.setMonth(date.getMonthValue());
|