Skip to content

Commit

Permalink
[UPDATE]3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Exrick committed Nov 1, 2020
1 parent 07fe8d6 commit 709b6c7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public Result<E> update(E entity) {
@RequestMapping(value = "/delByIds", method = RequestMethod.POST)
@ResponseBody
@ApiOperation(value = "批量通过id删除")
public Result<Object> delByIds(@RequestParam ID[] ids) {
public Result<Object> delByIds(ID[] ids) {

for (ID id : ids) {
getService().delete(id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public Client update(Client client) {
}

@Override
@CacheEvict(key = "#client.id")
@CacheEvict(key = "#id")
public void delete(String id) {

clientDao.deleteById(id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public Result<E> update(E entity) {
@RequestMapping(value = "/delByIds", method = RequestMethod.POST)
@ResponseBody
@ApiOperation(value = "批量通过id删除")
public Result<Object> delByIds(@RequestParam ID[] ids) {
public Result<Object> delByIds(ID[] ids) {

for (ID id : ids) {
getService().delete(id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public Client update(Client client) {
}

@Override
@CacheEvict(key = "#client.id")
@CacheEvict(key = "#id")
public void delete(String id) {

clientDao.deleteById(id);
Expand Down

0 comments on commit 709b6c7

Please sign in to comment.