删除秒杀bugfix
This commit is contained in:
@ -76,7 +76,7 @@ public class StoreSeckillController {
|
|||||||
return new ResponseEntity<>(yxStoreSeckillService.queryAll(criteria, pageable), HttpStatus.OK);
|
return new ResponseEntity<>(yxStoreSeckillService.queryAll(criteria, pageable), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ForbidSubmit
|
||||||
@CacheEvict(cacheNames = ShopConstants.YSHOP_REDIS_INDEX_KEY, allEntries = true)
|
@CacheEvict(cacheNames = ShopConstants.YSHOP_REDIS_INDEX_KEY, allEntries = true)
|
||||||
@Log("发布")
|
@Log("发布")
|
||||||
@ApiOperation(value = "发布")
|
@ApiOperation(value = "发布")
|
||||||
@ -97,7 +97,7 @@ public class StoreSeckillController {
|
|||||||
@ApiOperation(value = "删除")
|
@ApiOperation(value = "删除")
|
||||||
@DeleteMapping(value = "/yxStoreSeckill/{id}")
|
@DeleteMapping(value = "/yxStoreSeckill/{id}")
|
||||||
@PreAuthorize("hasAnyRole('admin','YXSTORESECKILL_ALL','YXSTORESECKILL_DELETE')")
|
@PreAuthorize("hasAnyRole('admin','YXSTORESECKILL_ALL','YXSTORESECKILL_DELETE')")
|
||||||
public ResponseEntity delete(@PathVariable Integer id) {
|
public ResponseEntity delete(@PathVariable Long id) {
|
||||||
yxStoreSeckillService.removeById(id);
|
yxStoreSeckillService.removeById(id);
|
||||||
return new ResponseEntity(HttpStatus.OK);
|
return new ResponseEntity(HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user