|
@@ -8,9 +8,11 @@ import com.ym.mec.biz.dal.page.OrganizationQueryInfo;
|
|
|
import com.ym.mec.biz.service.ManagerDownloadService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
+import com.ym.mec.common.exception.BizException;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -44,4 +46,15 @@ public class ManagerDownloadController extends BaseController {
|
|
|
return succeed(managerDownloadService.delete(id));
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "删除")
|
|
|
+ @PostMapping("/batchDel")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('managerDownload/batchDel')")
|
|
|
+ public Object batchDel(String ids) {
|
|
|
+ if(StringUtils.isEmpty(ids)){
|
|
|
+ throw new BizException("参数校验失败");
|
|
|
+ }
|
|
|
+ managerDownloadService.batchDel(ids);
|
|
|
+ return succeed();
|
|
|
+ }
|
|
|
+
|
|
|
}
|