|
@@ -779,7 +779,7 @@ public class ProduceReportServiceImpl extends BaseServiceImpl<ProduceReportMappe
|
|
|
|
|
|
// 更新
|
|
|
log.info("no: " + no + ", 液位库存: " + reportStock.getValue() + ", 当日入库: " + inStock.getValue() + ", 昨天液位: " + reportStockPre.getValue());
|
|
|
- report.setValue(new BigDecimal(reportStock.getValue()).add(new BigDecimal(inStock.getValue())).subtract(new BigDecimal(reportStockPre.getValue())).toString());
|
|
|
+ report.setValue(new BigDecimal(reportStockPre.getValue()).subtract(new BigDecimal(reportStock.getValue()).add(new BigDecimal(inStock.getValue()))).toString());
|
|
|
this.modModelByPrimaryKey(report);
|
|
|
|
|
|
// 重新计算当日单耗和月均单耗
|