From 5461a173fb8815b0319afa130002cbe7be77fc41 Mon Sep 17 00:00:00 2001 From: PigBaoBei <2739175034@qq.com> Date: Wed, 12 Jun 2024 11:30:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=88=97=E8=A1=A8=E8=81=94?= =?UTF-8?q?=E7=B3=BB=E4=BA=BABUG=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/BasicdataStoreContactController.java | 5 +++-- .../basicdata/mapper/BasicdataStoreContactMapper.java | 4 ++++ .../basicdata/mapper/BasicdataStoreContactMapper.xml | 4 ++++ .../service/IBasicdataStoreContactService.java | 10 ++++++++++ .../service/impl/BasicdataStoreContactServiceImpl.java | 6 ++++++ 5 files changed, 27 insertions(+), 2 deletions(-) diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataStoreContactController.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataStoreContactController.java index ca910f3ff..5cbee3f52 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataStoreContactController.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataStoreContactController.java @@ -75,8 +75,9 @@ public class BasicdataStoreContactController extends BladeController { @GetMapping("/list") @ApiOperationSupport(order = 2) @ApiOperation(value = "分页", notes = "传入basicdataStoreContact") - public R> list(@ApiIgnore @RequestParam Map basicdataStoreContact, Query query) { - IPage pages = basicdataStoreContactService.page(Condition.getPage(query), Condition.getQueryWrapper(basicdataStoreContact, BasicdataStoreContactEntity.class)); + public R> list(@ApiIgnore @RequestParam Map basicdataStoreContact, Query query) { + IPage page = Condition.getPage(query); + IPage pages = basicdataStoreContactService.pageList(page,basicdataStoreContact); return R.data(pages); } diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataStoreContactMapper.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataStoreContactMapper.java index 21407d25e..34712963b 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataStoreContactMapper.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataStoreContactMapper.java @@ -25,6 +25,7 @@ import com.logpm.basicdata.vo.BasicdataStoreContactVO; import org.apache.ibatis.annotations.Param; import java.util.List; +import java.util.Map; /** * 基础门店联系人表 Mapper 接口 @@ -52,4 +53,7 @@ public interface BasicdataStoreContactMapper extends BaseMapper exportBasicdataStoreContact(@Param("ew") Wrapper queryWrapper); + IPage pageList(IPage page,@Param("param") Map basicdataStoreContact); + + } diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataStoreContactMapper.xml b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataStoreContactMapper.xml index 9d8ba9b4a..673e24449 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataStoreContactMapper.xml +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataStoreContactMapper.xml @@ -18,5 +18,9 @@ + diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataStoreContactService.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataStoreContactService.java index fc4572323..0c0bcb74e 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataStoreContactService.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataStoreContactService.java @@ -24,6 +24,7 @@ import com.logpm.basicdata.vo.BasicdataStoreContactVO; import org.springblade.core.mp.base.BaseService; import java.util.List; +import java.util.Map; /** * 基础门店联系人表 服务类 @@ -51,4 +52,13 @@ public interface IBasicdataStoreContactService extends BaseService exportBasicdataStoreContact(Wrapper queryWrapper); Boolean ownUpdateById(BasicdataStoreContactEntity basicdataStoreContact); + + /** + * 商场联系人查询 + * @param page + * @param basicdataStoreContact + * @return + */ + IPage pageList(IPage page, Map basicdataStoreContact); + } diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataStoreContactServiceImpl.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataStoreContactServiceImpl.java index 181fd5f26..374b0ad8a 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataStoreContactServiceImpl.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataStoreContactServiceImpl.java @@ -33,6 +33,7 @@ import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import java.util.List; +import java.util.Map; import java.util.stream.Collectors; /** @@ -101,4 +102,9 @@ public class BasicdataStoreContactServiceImpl extends BaseServiceImpl pageList(IPage page, Map basicdataStoreContact) { + return baseMapper.pageList(page,basicdataStoreContact); + } + }