From b7df6735bcb2d447cae7fcfba2d12accf3dd2fcc Mon Sep 17 00:00:00 2001
From: linwei <872216696@qq.com>
Date: Sat, 03 Feb 2024 17:27:21 +0800
Subject: [PATCH] 消防检查优化

---
 src/main/java/org/springblade/modules/task/controller/TaskLabelReportingEventController.java |   19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/src/main/java/org/springblade/modules/task/controller/TaskLabelReportingEventController.java b/src/main/java/org/springblade/modules/task/controller/TaskLabelReportingEventController.java
index c8fb8cc..fef6404 100644
--- a/src/main/java/org/springblade/modules/task/controller/TaskLabelReportingEventController.java
+++ b/src/main/java/org/springblade/modules/task/controller/TaskLabelReportingEventController.java
@@ -16,26 +16,25 @@
  */
 package org.springblade.modules.task.controller;
 
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import io.swagger.annotations.ApiParam;
-import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
 import lombok.AllArgsConstructor;
-import javax.validation.Valid;
-
-import org.springblade.core.secure.BladeUser;
+import org.springblade.core.boot.ctrl.BladeController;
 import org.springblade.core.mp.support.Condition;
 import org.springblade.core.mp.support.Query;
 import org.springblade.core.tool.api.R;
 import org.springblade.core.tool.utils.Func;
 import org.springblade.modules.task.dto.TaskLabelReportingEventDTO;
-import org.springframework.web.bind.annotation.*;
-import com.baomidou.mybatisplus.core.metadata.IPage;
 import org.springblade.modules.task.entity.TaskLabelReportingEventEntity;
+import org.springblade.modules.task.service.ITaskLabelReportingEventService;
 import org.springblade.modules.task.vo.TaskLabelReportingEventVO;
 import org.springblade.modules.task.wrapper.TaskLabelReportingEventWrapper;
-import org.springblade.modules.task.service.ITaskLabelReportingEventService;
-import org.springblade.core.boot.ctrl.BladeController;
+import org.springframework.web.bind.annotation.*;
+
+import javax.validation.Valid;
 
 /**
  * 打金店报事 控制器
@@ -99,7 +98,7 @@
 	@PostMapping("/update")
 	@ApiOperationSupport(order = 5)
 	@ApiOperation(value = "修改", notes = "传入taskLabelReportingEvent")
-	public R update(@Valid @RequestBody TaskLabelReportingEventEntity taskLabelReportingEvent) {
+	public R update(@Valid @RequestBody TaskLabelReportingEventVO taskLabelReportingEvent) throws Exception {
 		return R.status(taskLabelReportingEventService.updateLabelReporting(taskLabelReportingEvent));
 	}
 
@@ -120,7 +119,7 @@
 	@ApiOperationSupport(order = 7)
 	@ApiOperation(value = "逻辑删除", notes = "传入ids")
 	public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
-		return R.status(taskLabelReportingEventService.deleteLogic(Func.toLongList(ids)));
+		return R.status(taskLabelReportingEventService.removeByIds(Func.toLongList(ids)));
 	}
 
 

--
Gitblit v1.9.3