File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/main/java/app/service/impl Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11package app .service .impl ;
22
3+ import app .common .utils .DateUtils ;
34import app .projection .StockProjection ;
45import app .repository .WareTransactionDetailRepository ;
56import app .service .StockService ;
@@ -19,9 +20,13 @@ public StockServiceImpl(WareTransactionDetailRepository wareTransactionDetailRep
1920 this .wareTransactionDetailRepository = wareTransactionDetailRepository ;
2021 }
2122
23+ /**
24+ * Returns a stock snapshot of a product, until the given date.
25+ * Including the given date.
26+ */
2227 @ Override
2328 public List <StockProjection > findStockByProductAndDate (String productCode , Date date ) {
2429 return this .wareTransactionDetailRepository
25- .findStockByProductAndDate (productCode , date );
30+ .findStockByProductAndDate (productCode , DateUtils . plusDays ( date , 1 ) );
2631 }
2732}
You can’t perform that action at this time.
0 commit comments