From 0547b497e9abf6b65b9aaf3caa9e12a2c501d26a Mon Sep 17 00:00:00 2001 From: "pref_mail@163.com" Date: Wed, 10 Jan 2024 16:53:53 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=A2=9E=E5=8A=A0=E5=8F=B8=E6=9C=BA=E7=9A=84?= =?UTF-8?q?=E8=BD=A6=E8=BE=86=E8=BE=93=E5=85=A5=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basicdata/controller/BasicdataVehicleController.java | 9 +++++++-- .../controller/BasicdataWarehouseController.java | 3 ++- .../logpm/basicdata/mapper/BasicdataVehicleMapper.java | 2 +- .../logpm/basicdata/mapper/BasicdataVehicleMapper.xml | 3 +++ .../basicdata/service/IBasicdataVehicleService.java | 2 +- .../service/impl/BasicdataVehicleServiceImpl.java | 8 ++++++-- .../service/impl/BasicdataWarehouseServiceImpl.java | 2 +- 7 files changed, 21 insertions(+), 8 deletions(-) diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataVehicleController.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataVehicleController.java index cd8869478..efa88aa0e 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataVehicleController.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataVehicleController.java @@ -33,6 +33,7 @@ import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; +import org.apache.ibatis.annotations.Param; import org.springblade.core.boot.ctrl.BladeController; import org.springblade.core.excel.util.ExcelUtil; import org.springblade.core.mp.support.Condition; @@ -126,8 +127,12 @@ public class BasicdataVehicleController extends BladeController { @GetMapping("/dictionary") @ApiOperationSupport(order = 10) @ApiOperation(value = "车辆信息表",notes = "传入code") - public R> dictionary() { - List dictionary = basicdataVehicleService.selectBasicdataVehicleDictionary(); + public R> dictionary(@RequestParam(value = "vehicleNub",required = false) String vehicleNub) { + + + log.info(">>>>112 {}",vehicleNub); + + List dictionary = basicdataVehicleService.selectBasicdataVehicleDictionary(vehicleNub); return R.data(dictionary); } diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataWarehouseController.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataWarehouseController.java index de5335b82..0a3dad131 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataWarehouseController.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataWarehouseController.java @@ -151,7 +151,8 @@ public class BasicdataWarehouseController extends BladeController { @GetMapping("/listName") @ApiOperationSupport(order = 2) @ApiOperation(value = "分页", notes = "传入warehouseWarehouse") - public R> listName(String name) { + public R> listName(@RequestParam("name") String name) { + log.info(">>>>>>>>>>>>>传入warehouseWarehouse name {}",name); List pages = warehouseService.pageListName(name); return R.data(pages); } diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataVehicleMapper.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataVehicleMapper.java index f236a1cb7..03a894a10 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataVehicleMapper.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataVehicleMapper.java @@ -59,7 +59,7 @@ public interface BasicdataVehicleMapper extends BaseMapper selectBasicdataDictionary(); + List selectBasicdataDictionary(@Param("vehicleNub") String vehicleNub); List findCarListByName(@Param("carNumber") String carNumber); } diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataVehicleMapper.xml b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataVehicleMapper.xml index 86f026e0c..f2a470fc5 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataVehicleMapper.xml +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataVehicleMapper.xml @@ -176,6 +176,9 @@