From 229d6e3cfde89427d371ae7ab5868fbe3e2c48a1 Mon Sep 17 00:00:00 2001 From: PigBaoBei <2739175034@qq.com> Date: Thu, 7 Mar 2024 00:08:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A5=E5=BA=93=E6=98=8E=E7=BB=86=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DistributionStockListInfoController.java | 3 ++- .../mapper/DistributionStockListInfoMapper.java | 3 +++ .../mapper/DistributionStockListInfoMapper.xml | 14 +++++++++++++- .../service/IDistributionStockListInfoService.java | 7 +++++++ .../impl/DistributionStockListInfoServiceImpl.java | 11 +++++++++++ 5 files changed, 36 insertions(+), 2 deletions(-) diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockListInfoController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockListInfoController.java index a1429c134..712cf8908 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockListInfoController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockListInfoController.java @@ -77,7 +77,8 @@ public class DistributionStockListInfoController extends BladeController { @ApiOperationSupport(order = 2) @ApiOperation(value = "分页", notes = "传入distributionStockListInfo") public R> list(@ApiIgnore @RequestParam Map distributionStockListInfo, Query query) { - IPage pages = distributionStockListInfoService.page(Condition.getPage(query), Condition.getQueryWrapper(distributionStockListInfo, DistributionStockListInfoEntity.class)); + IPage pages =distributionStockListInfoService.getStockListInfo(distributionStockListInfo,Condition.getPage(query)); +// IPage pages = distributionStockListInfoService.page(Condition.getPage(query), Condition.getQueryWrapper(distributionStockListInfo, DistributionStockListInfoEntity.class)); return R.data(DistributionStockListInfoWrapper.build().pageVO(pages)); } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListInfoMapper.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListInfoMapper.java index c08b7624e..840ab0720 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListInfoMapper.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListInfoMapper.java @@ -54,4 +54,7 @@ public interface DistributionStockListInfoMapper extends BaseMapper exportDistributionStockListInfo(@Param("ew") Wrapper queryWrapper); Map selectDistributionStockByOrderPackageCodeAndWarehourseIdAndCargoNumber(@Param("associationValue") String associationValue, @Param("warehouseId") Long warehouseId, @Param("cargoNumber") String cargoNumber); + + IPage getStockListInfo(@Param("par")IPage page, Map distributionStockListInfo); + } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListInfoMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListInfoMapper.xml index 6e0a234f1..eeb142bad 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListInfoMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListInfoMapper.xml @@ -91,5 +91,17 @@ ); - + diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionStockListInfoService.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionStockListInfoService.java index 2644ac229..661b6a0d4 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionStockListInfoService.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionStockListInfoService.java @@ -51,4 +51,11 @@ public interface IDistributionStockListInfoService extends BaseService exportDistributionStockListInfo(Map distributionStockListInfo); + /** + * 查询入库明细记录 + * @param distributionStockListInfo + * @param page + * @return + */ + IPage getStockListInfo(Map distributionStockListInfo, IPage page); } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockListInfoServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockListInfoServiceImpl.java index 175dada76..5e22fc799 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockListInfoServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockListInfoServiceImpl.java @@ -73,4 +73,15 @@ public class DistributionStockListInfoServiceImpl extends BaseServiceImpl getStockListInfo(Map distributionStockListInfo, IPage page) { + + return baseMapper.getStockListInfo(page, distributionStockListInfo); + } + }