From b3b566ebdfed4005aaa513da3d5d2fd3924903cc Mon Sep 17 00:00:00 2001
From: linwei <872216696@qq.com>
Date: Wed, 31 Jan 2024 16:17:54 +0800
Subject: [PATCH] 拿不到地址总表数据,不设置网格信息

---
 src/main/java/org/springblade/modules/task/controller/TaskLabelReportingEventController.java |   21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 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 4c75802..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;
 
 /**
  * 打金店报事 控制器
@@ -59,7 +58,7 @@
 	@ApiOperation(value = "详情", notes = "传入taskLabelReportingEvent")
 	public R<TaskLabelReportingEventVO> detail(TaskLabelReportingEventEntity taskLabelReportingEvent) {
 		TaskLabelReportingEventEntity detail = taskLabelReportingEventService.getOne(Condition.getQueryWrapper(taskLabelReportingEvent));
-		return R.data(TaskLabelReportingEventWrapper.build().entityVO(detail));
+		return R.data(TaskLabelReportingEventWrapper.build(). entityVO(detail));
 	}
 	/**
 	 * 打金店报事 分页
@@ -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