优化库存状态报表的导出功能

This commit is contained in:
季圣华
2020-06-05 00:10:18 +08:00
parent e8e43675fb
commit e2d4e7eba8

View File

@@ -358,13 +358,13 @@ public class DepotItemController {
objs[0] = diEx.getMName().toString(); objs[0] = diEx.getMName().toString();
objs[1] = diEx.getMModel().toString(); objs[1] = diEx.getMModel().toString();
objs[2] = diEx.getMaterialUnit().toString(); objs[2] = diEx.getMaterialUnit().toString();
objs[3] = getUnitPrice(diEx.getPresetPriceOne(), diEx.getPriceStrategy()).toString(); objs[3] = diEx.getPurchaseDecimal().toString();
objs[4] = depotItemService.getStockByParam(depotId,mId,null,timeA,tenantId).toString(); objs[4] = depotItemService.getStockByParam(depotId,mId,null,timeA,tenantId).toString();
objs[5] = depotItemService.getInNumByParam(depotId,mId,timeA,timeB,tenantId).toString(); objs[5] = depotItemService.getInNumByParam(depotId,mId,timeA,timeB,tenantId).toString();
objs[6] = depotItemService.getOutNumByParam(depotId,mId,timeA,timeB,tenantId).toString(); objs[6] = depotItemService.getOutNumByParam(depotId,mId,timeA,timeB,tenantId).toString();
BigDecimal thisSum = depotItemService.getStockByParam(depotId,mId,null,timeB,tenantId); BigDecimal thisSum = depotItemService.getStockByParam(depotId,mId,null,timeB,tenantId);
objs[7] = thisSum.toString(); objs[7] = thisSum.toString();
objs[8] = thisSum.multiply(getUnitPrice(diEx.getPresetPriceOne(), diEx.getPriceStrategy())).toString(); objs[8] = thisSum.multiply(diEx.getPurchaseDecimal()).toString();
objects.add(objs); objects.add(objs);
} }
} }