|
@@ -1,7 +1,6 @@
|
|
|
package com.ruoyi.web.controller.system;
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
-import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
@@ -56,12 +55,12 @@ public class EventTypeAssigneeController extends BaseController {
|
|
|
@ApiOperation("删除事件负责人")
|
|
|
@PostMapping("/delete")
|
|
|
@PreAuthorize("@ss.hasPermi('system:role:admin')")
|
|
|
- public AjaxResult deleteEventTypeAssignee(@RequestBody Map<String, String> paramsMap) {
|
|
|
- String ids = paramsMap.get("ids");
|
|
|
- if (StrUtil.isBlank(ids)) {
|
|
|
+ public AjaxResult deleteEventTypeAssignee(@RequestBody Map<String, Integer> paramsMap) {
|
|
|
+ Integer personId = paramsMap.get("personId");
|
|
|
+ if (ObjectUtil.isEmpty(personId)) {
|
|
|
return error("请求参数为空");
|
|
|
}
|
|
|
- boolean b = eventTypeAssigneeService.deleteEventTypeAssignee(ids);
|
|
|
+ boolean b = eventTypeAssigneeService.deleteEventTypeAssignee(personId);
|
|
|
if (b) {
|
|
|
return success("删除成功");
|
|
|
}
|