更改商品bug
This commit is contained in:
@@ -44,19 +44,11 @@ public class TbProductController {
|
||||
|
||||
private final TbProductService tbProductService;
|
||||
|
||||
@Log("导出数据")
|
||||
@ApiOperation("导出数据")
|
||||
@GetMapping(value = "/download")
|
||||
@PreAuthorize("@el.check('tbProduct:list')")
|
||||
public void exportTbProduct(HttpServletResponse response, TbProductQueryCriteria criteria) throws IOException {
|
||||
tbProductService.download(tbProductService.queryAll(criteria), response);
|
||||
}
|
||||
|
||||
@GetMapping
|
||||
@Log("查询/product")
|
||||
@ApiOperation("查询/product")
|
||||
public ResponseEntity<Object> queryTbProduct(TbProductQueryCriteria criteria, Pageable pageable){
|
||||
return new ResponseEntity<>(tbProductService.queryAll(criteria,pageable),HttpStatus.OK);
|
||||
public ResponseEntity<Object> queryTbProduct(TbProductQueryCriteria criteria){
|
||||
return new ResponseEntity<>(tbProductService.queryAll(criteria),HttpStatus.OK);
|
||||
}
|
||||
|
||||
@GetMapping("/{product}")
|
||||
|
||||
@@ -102,7 +102,7 @@ public class TbProductGroupController {
|
||||
*/
|
||||
@GetMapping("/addProduct")
|
||||
public ResponseEntity<Object> ProductList(TbProductQueryCriteria criteria, Pageable pageable){
|
||||
return new ResponseEntity<>(tbProductService.queryAll(criteria,pageable),HttpStatus.OK);
|
||||
return new ResponseEntity<>(tbProductService.queryAll(criteria),HttpStatus.OK);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -44,20 +44,20 @@ public class TbShopInfoController {
|
||||
|
||||
private final TbShopInfoService tbShopInfoService;
|
||||
|
||||
@Log("导出数据")
|
||||
@ApiOperation("导出数据")
|
||||
@GetMapping(value = "/download")
|
||||
@PreAuthorize("@el.check('tbShopInfo:list')")
|
||||
public void exportTbShopInfo(HttpServletResponse response, TbShopInfoQueryCriteria criteria) throws IOException {
|
||||
tbShopInfoService.download(tbShopInfoService.queryAll(criteria), response);
|
||||
}
|
||||
// @Log("导出数据")
|
||||
// @ApiOperation("导出数据")
|
||||
// @GetMapping(value = "/download")
|
||||
// @PreAuthorize("@el.check('tbShopInfo:list')")
|
||||
// public void exportTbShopInfo(HttpServletResponse response, TbShopInfoQueryCriteria criteria) throws IOException {
|
||||
// tbShopInfoService.download(tbShopInfoService.queryAll(criteria), response);
|
||||
// }
|
||||
|
||||
@GetMapping
|
||||
@Log("查询/shop/list")
|
||||
@ApiOperation("查询/shop/list")
|
||||
@PreAuthorize("@el.check('tbShopInfo:list')")
|
||||
public ResponseEntity<Object> queryTbShopInfo(TbShopInfoQueryCriteria criteria, Pageable pageable){
|
||||
return new ResponseEntity<>(tbShopInfoService.queryAll(criteria,pageable),HttpStatus.OK);
|
||||
return new ResponseEntity<>(tbShopInfoService.queryAll(criteria),HttpStatus.OK);
|
||||
}
|
||||
|
||||
@GetMapping("/{shopId}")
|
||||
|
||||
Reference in New Issue
Block a user