From 2cb5d887c9b7845353ae28bfc193f6a24b4c589e Mon Sep 17 00:00:00 2001 From: gaorl Date: Thu, 4 May 2023 18:47:10 +0800 Subject: [PATCH] =?UTF-8?q?feature=EF=BC=9A=E5=AE=A2=E6=88=B7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=88=86=E9=A1=B5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/buyer/dao/BuyerMapper.java | 8 ++ .../buyer/service/impl/BuyerServiceImpl.java | 3 +- .../resources/mybatis/mapper/BuyerMapper.xml | 135 ++++++++++-------- 3 files changed, 82 insertions(+), 64 deletions(-) diff --git a/order-management-base-service/src/main/java/com/dxhy/order/baseservice/module/buyer/dao/BuyerMapper.java b/order-management-base-service/src/main/java/com/dxhy/order/baseservice/module/buyer/dao/BuyerMapper.java index 7150f909..70490bb2 100644 --- a/order-management-base-service/src/main/java/com/dxhy/order/baseservice/module/buyer/dao/BuyerMapper.java +++ b/order-management-base-service/src/main/java/com/dxhy/order/baseservice/module/buyer/dao/BuyerMapper.java @@ -23,6 +23,14 @@ public interface BuyerMapper { */ List selectBuyerList(@Param("map") Map map, @Param("shList") List shList); + /** + * 客户信息统计数 + * @param map + * @param shList + * @return + */ + Integer selectBuyerCount(@Param("map") Map map, @Param("shList") List shList); + /** * 修改 * diff --git a/order-management-base-service/src/main/java/com/dxhy/order/baseservice/module/buyer/service/impl/BuyerServiceImpl.java b/order-management-base-service/src/main/java/com/dxhy/order/baseservice/module/buyer/service/impl/BuyerServiceImpl.java index 7f38544c..dd897d55 100644 --- a/order-management-base-service/src/main/java/com/dxhy/order/baseservice/module/buyer/service/impl/BuyerServiceImpl.java +++ b/order-management-base-service/src/main/java/com/dxhy/order/baseservice/module/buyer/service/impl/BuyerServiceImpl.java @@ -70,6 +70,7 @@ public class BuyerServiceImpl implements BuyerService { int pageSize = Integer.parseInt(String.valueOf(paramMap.get(ConfigureConstant.STRING_PAGE_SIZE))); int currPage = Integer.parseInt(String.valueOf(paramMap.get(ConfigureConstant.STRING_CURR_PAGE))); log.debug("{}订单查询,当前页:{},页面条数:{}", LOGGER_MSG, currPage, pageSize); + Integer integer = buyerMapper.selectBuyerCount(paramMap, shList); PageHelper.startPage(currPage, pageSize); List list = buyerMapper.selectBuyerList(paramMap, shList); list.forEach(t->{ @@ -80,7 +81,7 @@ public class BuyerServiceImpl implements BuyerService { } }); PageInfo pageInfo = new PageInfo<>(list); - PageUtils page = new PageUtils(pageInfo.getList(), list.size(), pageInfo.getPageSize(), + PageUtils page = new PageUtils(pageInfo.getList(), integer, pageInfo.getPageSize(), pageInfo.getPageNum()); log.info("{}返回值{} ", LOGGER_MSG, page); diff --git a/order-management-base-service/src/main/resources/mybatis/mapper/BuyerMapper.xml b/order-management-base-service/src/main/resources/mybatis/mapper/BuyerMapper.xml index 153a9d7f..cb448fe4 100644 --- a/order-management-base-service/src/main/resources/mybatis/mapper/BuyerMapper.xml +++ b/order-management-base-service/src/main/resources/mybatis/mapper/BuyerMapper.xml @@ -43,6 +43,77 @@ id,taxpayer_code,purchase_name,address,phone,bank_of_deposit,bank_number,email,sjh,remarks,create_time,create_user_id,modify_time,modify_user_id,ghf_qylx,xhf_nsrsbh,xhf_mc,buyer_code,invoice_name,invoice_taxno,mdm_multicode_json,status + + + + and xhf_nsrsbh = '' + + + and xhf_nsrsbh = + + #{item} + + + + and xhf_nsrsbh in + + #{item} + + + + + and ent_id = '' + + + and ent_id = + + #{item} + + + + and ent_id in + + #{item} + + + + + and buyer_code LIKE CONCAT(CONCAT('%',#{map.buyerCode,jdbcType=VARCHAR},'%')) + + + + and xhf_mc = #{map.xhfMc,jdbcType=VARCHAR} + + + + and status = #{map.status,jdbcType=VARCHAR} + + + + and taxpayer_code = #{map.taxpayerCode,jdbcType=VARCHAR} + + + + + + AND purchase_name = #{map.purchaseName,jdbcType=VARCHAR} + + + AND purchase_name LIKE CONCAT(CONCAT('%',#{map.purchaseName}),'%') + + + + + +