提交 709b6c7a 编写于 作者: Exrick's avatar Exrick

[UPDATE]3.0

上级 07fe8d68
......@@ -72,7 +72,7 @@ public abstract class XbootBaseController<E, ID extends Serializable> {
@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);
......
......@@ -70,7 +70,7 @@ public class ClientServiceImpl implements ClientService {
}
@Override
@CacheEvict(key = "#client.id")
@CacheEvict(key = "#id")
public void delete(String id) {
clientDao.deleteById(id);
......
......@@ -72,7 +72,7 @@ public abstract class XbootBaseController<E, ID extends Serializable> {
@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);
......
......@@ -70,7 +70,7 @@ public class ClientServiceImpl implements ClientService {
}
@Override
@CacheEvict(key = "#client.id")
@CacheEvict(key = "#id")
public void delete(String id) {
clientDao.deleteById(id);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册