src/main/java/com/moral/controller/AccountController.java
@@ -39,13 +39,7 @@ return new ResultBean<Integer>(result); } @PostMapping("account/id") public ResultBean<Integer> deleteAccountByLogic(@RequestBody Account account) { Integer result = accountService.deleteAccountByLogic(account); return new ResultBean<Integer>(result); } @PostMapping("accounts/ids") @PostMapping("ids") public ResultBean<Integer> deleteAccountsByLogic(@RequestBody List<Integer> ids) { Integer result = accountService.deleteAccountsByLogic(ids); return new ResultBean<Integer>(result); src/main/java/com/moral/service/AccountService.java
@@ -18,8 +18,6 @@ Integer saveOrUpdateAccount(Account account); Integer deleteAccountByLogic(Account account); Integer deleteAccountsByLogic(List<Integer> ids); } src/main/java/com/moral/service/impl/AccountServiceImpl.java
@@ -127,13 +127,6 @@ @Override @Transactional public Integer deleteAccountByLogic(Account account) { account.setIsDelete(Constants.IS_DELETE_TRUE); return accountMapper.updateByPrimaryKeySelective(account); } @Override @Transactional public Integer deleteAccountsByLogic(List<Integer> ids) { Account account = new Account(); account.setIsDelete(Constants.IS_DELETE_TRUE);