From 0fcc6eb314fafab572def73100584d353089ee8c Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期六, 10 一月 2026 16:29:30 +0800
Subject: [PATCH] Merge branch 'dev_tide_sbjkxt' into dev_tide_sbjkxt_xindao
---
src/main/java/com/ruoyi/vehicleInformationCollectionReview/controller/VehicleInformationCollectionController.java | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 51 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/ruoyi/vehicleInformationCollectionReview/controller/VehicleInformationCollectionController.java b/src/main/java/com/ruoyi/vehicleInformationCollectionReview/controller/VehicleInformationCollectionController.java
new file mode 100644
index 0000000..f67804d
--- /dev/null
+++ b/src/main/java/com/ruoyi/vehicleInformationCollectionReview/controller/VehicleInformationCollectionController.java
@@ -0,0 +1,51 @@
+package com.ruoyi.vehicleInformationCollectionReview.controller;
+
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.ruoyi.framework.web.domain.AjaxResult;
+import com.ruoyi.vehicleInformationCollectionReview.dto.VehicleInformationCollectionReviewDTO;
+import com.ruoyi.vehicleInformationCollectionReview.pojo.VehicleInformationCollectionReview;
+import com.ruoyi.vehicleInformationCollectionReview.service.VehicleInformationCollectionReviewService;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@Slf4j
+@RestController
+@RequestMapping("/environmentAccess")
+public class VehicleInformationCollectionController {
+
+ @Autowired
+ private VehicleInformationCollectionReviewService vehicleInformationCollectionReviewService;
+
+ // 鏌ヨ杞﹁締淇℃伅鍒嗛〉鍒楄〃
+ @GetMapping("/vehicleInfoPage")
+ public AjaxResult vehicleInfoPage(Page page, VehicleInformationCollectionReview vehicleInformationCollectionReview){
+ return AjaxResult.success(vehicleInformationCollectionReviewService.listPage(page,vehicleInformationCollectionReview));
+ }
+ // 鏂板杞﹁締淇℃伅
+ @PostMapping("/vehicleInfoAdd")
+ public AjaxResult vehicleInfoAdd(@RequestBody VehicleInformationCollectionReview vehicleInformationCollectionReview){
+ return AjaxResult.success(vehicleInformationCollectionReviewService.insert(vehicleInformationCollectionReview));
+ }
+ // 淇敼杞﹁締淇℃伅
+ @PutMapping("/vehicleInfoUpdate")
+ public AjaxResult updateRecord(VehicleInformationCollectionReview vehicleInformationCollectionReview){
+ return AjaxResult.success(vehicleInformationCollectionReviewService.updateById(vehicleInformationCollectionReview));
+ }
+ // 鍒犻櫎杞﹁締淇℃伅锛堟敮鎸佹壒閲忥級
+ @DeleteMapping("/vehicleInfoDelete")
+ public AjaxResult removeRecords(@RequestBody List<Long> ids){
+ return AjaxResult.success(vehicleInformationCollectionReviewService.removeBatchByIds(ids));
+ }
+ // 瀹℃牳杞﹁締淇℃伅
+ @PostMapping("/vehicleInfoReview")
+ public AjaxResult vehicleInfoReview(@RequestBody VehicleInformationCollectionReviewDTO vehicleInformationCollectionReviewDTO){
+ return AjaxResult.success(vehicleInformationCollectionReviewService.update(Wrappers.<VehicleInformationCollectionReview>lambdaUpdate()
+ .set(VehicleInformationCollectionReview::getReviewStatus,vehicleInformationCollectionReviewDTO.getReviewStatus())
+ .eq(VehicleInformationCollectionReview::getId,vehicleInformationCollectionReviewDTO.getId())));
+ }
+
+}
--
Gitblit v1.9.3