From 55d677758efadb6d42e6d4e595cecc2c50c20d5a Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Sat, 23 Dec 2023 17:19:12 +0800
Subject: [PATCH] bug修复
---
src/main/java/org/springblade/modules/task/controller/TaskHotelReportingController.java | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/springblade/modules/task/controller/TaskHotelReportingController.java b/src/main/java/org/springblade/modules/task/controller/TaskHotelReportingController.java
index a0cefe8..4274561 100644
--- a/src/main/java/org/springblade/modules/task/controller/TaskHotelReportingController.java
+++ b/src/main/java/org/springblade/modules/task/controller/TaskHotelReportingController.java
@@ -28,6 +28,7 @@
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.TaskHotelReportingDTO;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.modules.task.entity.TaskHotelReportingEntity;
@@ -88,8 +89,8 @@
@PostMapping("/save")
@ApiOperationSupport(order = 4)
@ApiOperation(value = "新增", notes = "传入taskHotelReporting")
- public R save(@Valid @RequestBody TaskHotelReportingEntity taskHotelReporting) {
- return R.status(taskHotelReportingService.save(taskHotelReporting));
+ public R save(@Valid @RequestBody TaskHotelReportingDTO taskHotelReporting) {
+ return R.status(taskHotelReportingService.saveHotelReporting(taskHotelReporting));
}
/**
@@ -99,7 +100,7 @@
@ApiOperationSupport(order = 5)
@ApiOperation(value = "修改", notes = "传入taskHotelReporting")
public R update(@Valid @RequestBody TaskHotelReportingEntity taskHotelReporting) {
- return R.status(taskHotelReportingService.updateById(taskHotelReporting));
+ return R.status(taskHotelReportingService.updateHotelReporting(taskHotelReporting));
}
/**
--
Gitblit v1.9.3