删除秒杀bugfix

This commit is contained in:
taozi
2023-04-09 00:23:58 +08:00
parent 5bf58141ef
commit 265d2e567b

View File

@ -76,7 +76,7 @@ public class StoreSeckillController {
return new ResponseEntity<>(yxStoreSeckillService.queryAll(criteria, pageable), HttpStatus.OK);
}
@ForbidSubmit
@CacheEvict(cacheNames = ShopConstants.YSHOP_REDIS_INDEX_KEY, allEntries = true)
@Log("发布")
@ApiOperation(value = "发布")
@ -97,7 +97,7 @@ public class StoreSeckillController {
@ApiOperation(value = "删除")
@DeleteMapping(value = "/yxStoreSeckill/{id}")
@PreAuthorize("hasAnyRole('admin','YXSTORESECKILL_ALL','YXSTORESECKILL_DELETE')")
public ResponseEntity delete(@PathVariable Integer id) {
public ResponseEntity delete(@PathVariable Long id) {
yxStoreSeckillService.removeById(id);
return new ResponseEntity(HttpStatus.OK);
}