增加时间方法,增加汇总部分数据,分类更改
This commit is contained in:
@@ -43,19 +43,19 @@ public class TbShopCategoryController {
|
||||
|
||||
private final TbShopCategoryService tbShopCategoryService;
|
||||
|
||||
@Log("导出数据")
|
||||
@ApiOperation("导出数据")
|
||||
@GetMapping(value = "/download")
|
||||
@PreAuthorize("@el.check('tbShopCategory:list')")
|
||||
public void exportTbShopCategory(HttpServletResponse response, TbShopCategoryQueryCriteria criteria) throws IOException {
|
||||
tbShopCategoryService.download(tbShopCategoryService.queryAll(criteria), response);
|
||||
}
|
||||
// @Log("导出数据")
|
||||
// @ApiOperation("导出数据")
|
||||
// @GetMapping(value = "/download")
|
||||
// @PreAuthorize("@el.check('tbShopCategory:list')")
|
||||
// public void exportTbShopCategory(HttpServletResponse response, TbShopCategoryQueryCriteria criteria) throws IOException {
|
||||
// tbShopCategoryService.download(tbShopCategoryService.queryAll(criteria), response);
|
||||
// }
|
||||
|
||||
@GetMapping
|
||||
@Log("查询product/category")
|
||||
@ApiOperation("查询product/category")
|
||||
public ResponseEntity<Object> queryTbShopCategory(TbShopCategoryQueryCriteria criteria, Pageable pageable){
|
||||
return new ResponseEntity<>(tbShopCategoryService.queryAll(criteria,pageable),HttpStatus.OK);
|
||||
public ResponseEntity<Object> queryTbShopCategory(TbShopCategoryQueryCriteria criteria){
|
||||
return new ResponseEntity<>(tbShopCategoryService.queryAll(criteria),HttpStatus.OK);
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
|
||||
@@ -24,4 +24,9 @@ public class SummaryController {
|
||||
private Object shopSummary(@RequestParam Integer shopId){
|
||||
return summaryService.selectSummary(shopId);
|
||||
}
|
||||
|
||||
@GetMapping("/date")
|
||||
private Object shopSummaryDate(@RequestParam Integer shopId,@RequestParam Integer day){
|
||||
return summaryService.selectSummaryDate(shopId,day);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user