| | |
| | | @GetMapping(value = "/delete") |
| | | public ResponseMsg<Integer> delete(int id) { |
| | | try { |
| | | int count = metaService.delete(id); |
| | | // int count = metaService.delete(id) |
| | | int count = metaService.deleteCascade(String.valueOf(id)); |
| | | |
| | | return success(count); |
| | | } catch (Exception ex) { |
| | |
| | | return fail("id数组不能为空", -1); |
| | | } |
| | | |
| | | int count = metaService.deletes(ids); |
| | | // int count = metaService.deletes(ids) |
| | | String idStr = StringHelper.join(ids, ","); |
| | | int count = metaService.deleteCascade(idStr); |
| | | |
| | | return success(count); |
| | | } catch (Exception ex) { |