From b3245b2608e7f4dadc24e26ecf43107dae1c33ee Mon Sep 17 00:00:00 2001
From: liusuyi <1951119284@qq.com>
Date: Sat, 22 Mar 2025 11:44:00 +0800
Subject: [PATCH] 优化
---
ard-work/src/main/java/com/ard/tianyu/controller/uav/UavBoxController.java | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/ard-work/src/main/java/com/ard/tianyu/controller/uav/UavBoxController.java b/ard-work/src/main/java/com/ard/tianyu/controller/uav/UavBoxController.java
index 821deab..93bdf16 100644
--- a/ard-work/src/main/java/com/ard/tianyu/controller/uav/UavBoxController.java
+++ b/ard-work/src/main/java/com/ard/tianyu/controller/uav/UavBoxController.java
@@ -4,7 +4,7 @@
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
-import com.ard.tianyu.domain.UavBox;
+import com.ard.tianyu.domain.entity.UavBoxEntity;
import com.ard.tianyu.service.IUavBoxService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -44,10 +44,10 @@
@ApiOperation("查询无人机盒子列表")
@PreAuthorize("@ss.hasPermi('uav:box:list')")
@GetMapping("/list")
- public TableDataInfo list(UavBox uavBox)
+ public TableDataInfo list(UavBoxEntity uavBoxEntity)
{
startPage();
- List<UavBox> list = uavBoxService.selectUavBoxList(uavBox);
+ List<UavBoxEntity> list = uavBoxService.selectUavBoxList(uavBoxEntity);
return getDataTable(list);
}
@@ -57,10 +57,10 @@
@PreAuthorize("@ss.hasPermi('uav:box:export')")
@Log(title = "无人机盒子", businessType = BusinessType.EXPORT)
@PostMapping("/export")
- public void export(HttpServletResponse response, UavBox uavBox)
+ public void export(HttpServletResponse response, UavBoxEntity uavBoxEntity)
{
- List<UavBox> list = uavBoxService.selectUavBoxList(uavBox);
- ExcelUtil<UavBox> util = new ExcelUtil<UavBox>(UavBox.class);
+ List<UavBoxEntity> list = uavBoxService.selectUavBoxList(uavBoxEntity);
+ ExcelUtil<UavBoxEntity> util = new ExcelUtil<UavBoxEntity>(UavBoxEntity.class);
util.exportExcel(response, list, "无人机盒子数据");
}
@@ -82,9 +82,9 @@
@PreAuthorize("@ss.hasPermi('uav:box:add')")
@Log(title = "无人机盒子", businessType = BusinessType.INSERT)
@PostMapping
- public AjaxResult add(@RequestBody UavBox uavBox)
+ public AjaxResult add(@RequestBody UavBoxEntity uavBoxEntity)
{
- return toAjax(uavBoxService.insertUavBox(uavBox));
+ return toAjax(uavBoxService.insertUavBox(uavBoxEntity));
}
/**
@@ -94,9 +94,9 @@
@PreAuthorize("@ss.hasPermi('uav:box:edit')")
@Log(title = "无人机盒子", businessType = BusinessType.UPDATE)
@PutMapping
- public AjaxResult edit(@RequestBody UavBox uavBox)
+ public AjaxResult edit(@RequestBody UavBoxEntity uavBoxEntity)
{
- return toAjax(uavBoxService.updateUavBox(uavBox));
+ return toAjax(uavBoxService.updateUavBox(uavBoxEntity));
}
/**
--
Gitblit v1.9.3