From cbc882364d43e66e8a7d2a2256ab951994195457 Mon Sep 17 00:00:00 2001
From: rain <167982779@qq.com>
Date: Mon, 01 Apr 2024 20:11:59 +0800
Subject: [PATCH] 概括信息模块和图斑模块修改根据itemId进行查询和修改
---
src/main/java/com/dji/sample/patches/controller/GetPatchesController.java | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/dji/sample/patches/controller/GetPatchesController.java b/src/main/java/com/dji/sample/patches/controller/GetPatchesController.java
index 9a39412..94ef34d 100644
--- a/src/main/java/com/dji/sample/patches/controller/GetPatchesController.java
+++ b/src/main/java/com/dji/sample/patches/controller/GetPatchesController.java
@@ -19,10 +19,12 @@
@GetMapping("/getPatches")
@SysLogAnnotation(operModul = "图斑", operType = "查询", operDesc = "查询图斑的全部信息")
public ResponseResult<PaginationData<LotInfo>> page(@RequestParam Integer page,
- @RequestParam(name = "page_size", defaultValue = "10") Integer pageSize) {
+ @RequestParam(name = "page_size", defaultValue = "10") Integer pageSize,
+ @RequestParam String itemId) {
//调用service分页查询
PatchesParam param=PatchesParam.builder()
.page(page)
+ .itemId(itemId)
.pageSize(pageSize).build();
PaginationData<LotInfo> data = getPatchesService.limitGet(param);
return ResponseResult.success(data);
@@ -37,9 +39,11 @@
@GetMapping("/GetPhoto")
public ResponseResult<PaginationData<MediaFileEntity>> GetPatchesPhoto(@RequestParam(name = "page", defaultValue = "1") Integer page,
@RequestParam(name = "page_size", defaultValue = "10") Integer pageSize,
+ @RequestParam String itemId,
@RequestParam String dkbh){
PatchesParam param=PatchesParam.builder()
.page(page)
+ .itemId(itemId)
.pageSize(pageSize).build();
getPatchesService.getPhoto(param,dkbh);
return ResponseResult.success(getPatchesService.getPhoto(param,dkbh));
--
Gitblit v1.9.3