@GetMapping("/stock-reports/stock-details")
@ResponseStatus(HttpStatus.OK)
public PageResponse<StockDetail> getStockDetails(@RequestParam Map<String, String> allRequestParams) {
Criteria<StockDetail> criteria = new Criteria<StockDetail>();
criteria.add(Restrictions.like("stockCode", allRequestParams.get("stockCode"), true));
criteria.add(Restrictions.like("stockName", allRequestParams.get("stockName"), true));
criteria.add(Restrictions.gte("stockDate", ObjectUtils.convertToDate(allRequestParams.get("stockDateBegin")), true));
criteria.add(Restrictions.lte("stockDate", ObjectUtils.convertToDate(allRequestParams.get("stockDateEnd")), true));
return createPageResponse(stockDetailRepository.findAll(criteria, getPageable(allRequestParams)));
}
StockReportResource.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:plumdo-stock
作者:
评论列表
文章目录