|
@@ -190,5 +190,19 @@ public class PoTetherController extends BaseController
|
|
|
}
|
|
|
return toAjax(poTetherService.deletePoTetherByTetherIdsWithCollection(tetherIds));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 逻辑删除
|
|
|
+ */
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:tether:remove')")
|
|
|
+ @Log(title = "套系", businessType = BusinessType.DELETE)
|
|
|
+ @DeleteMapping("/delete/{tetherIds}")
|
|
|
+ public AjaxResult delete(@PathVariable Long[] tetherIds)
|
|
|
+ {
|
|
|
+ if (!getUsername().equals("admin")){
|
|
|
+ return AjaxResult.error("删除消息失败当前用户不是管理员");
|
|
|
+ }
|
|
|
+ return toAjax(poTetherService.removePoTetherByTetherIdsWithCollection(tetherIds));
|
|
|
+ }
|
|
|
}
|
|
|
|