| | |
| | | package com.oying.modules.pc.product.rest; |
| | | |
| | | import cn.hutool.core.collection.ListUtil; |
| | | import cn.hutool.core.util.ObjectUtil; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.oying.annotation.Log; |
| | |
| | | return ResponseEntity.ok(R.success(productService.queryAll(criteria))); |
| | | } |
| | | |
| | | @GetMapping(value = "/batch") |
| | | @ApiOperation("查询商品(批量)") |
| | | // @PreAuthorize("@el.check('product:list')") |
| | | public ResponseEntity<?> getProductsByIds(@RequestParam(value = "ids") List<Long> ids) { |
| | | return ResponseEntity.ok(R.success(productService.listByIds(ids))); |
| | | } |
| | | |
| | | @GetMapping(value = "/page") |
| | | @ApiOperation("查询商品") |
| | | // @PreAuthorize("@el.check('product:list')") |