From 85ff833b430eb83e5d47f723f301c1f83dc1d19f Mon Sep 17 00:00:00 2001 From: yewj Date: Wed, 18 Sep 2024 14:35:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B8=E5=85=B3bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../glxp/mipsdl/client/ctqyy/CtqyyClient.java | 8 +- .../ctqyy/VInsurNationGoodsReturnMapper.java | 2 + .../thirddao/ctqyy/VYpzsIoInfoMapper.java | 6 +- .../ctqyy/VYpzsPresInfoReturnMapper.java | 2 + .../mapper/other/ctqyy/VYpzsIoInfoMapper.xml | 139 +++++++++--------- 5 files changed, 78 insertions(+), 79 deletions(-) diff --git a/src/main/java/com/glxp/mipsdl/client/ctqyy/CtqyyClient.java b/src/main/java/com/glxp/mipsdl/client/ctqyy/CtqyyClient.java index 112d4c5..e1072cf 100644 --- a/src/main/java/com/glxp/mipsdl/client/ctqyy/CtqyyClient.java +++ b/src/main/java/com/glxp/mipsdl/client/ctqyy/CtqyyClient.java @@ -1439,7 +1439,7 @@ public class CtqyyClient extends CommonHttpClient { List collect = planInfos.stream().map(VYpzsPlanInfo::getCGDBH).collect(Collectors.toList()); LambdaQueryWrapper wrapper1 = new LambdaQueryWrapper<>(); - wrapper1.in(VYpzsPlanInfo::getCGDBH,collect); + wrapper1.in(VYpzsPlanInfo::getCGDBH, collect); List vYpzsPlanInfos = vYpzsPlanInfoMapper.selectList(wrapper1); Map> groupedByBz = vYpzsPlanInfos.stream() @@ -1507,14 +1507,14 @@ public class CtqyyClient extends CommonHttpClient { .or().like(VYpzsIoInfo::getIO_SORT, keywords)//收货方 ); - Page page = vYpzsIoInfoMapper.selectGroupedWithPagination( new Page(udiwmsThrOrderRequest.getPage(), udiwmsThrOrderRequest.getLimit()), udiwmsThrOrderRequest); + Page page = vYpzsIoInfoMapper.selectGroupedWithPagination(new Page(udiwmsThrOrderRequest.getPage(), udiwmsThrOrderRequest.getLimit()), udiwmsThrOrderRequest); List ioInfos = page.getRecords(); List ioCollectOrders = new ArrayList<>(); if (CollUtil.isNotEmpty(ioInfos)) { List collect = ioInfos.stream().map(VYpzsIoInfo::getRECEIPT_NUMBER).collect(Collectors.toList()); LambdaQueryWrapper vYpzsIoInfoLambdaQueryWrapper = new LambdaQueryWrapper<>(); - vYpzsIoInfoLambdaQueryWrapper.in(VYpzsIoInfo::getRECEIPT_NUMBER,collect); + vYpzsIoInfoLambdaQueryWrapper.in(VYpzsIoInfo::getRECEIPT_NUMBER, collect); List vYpzsIoInfos = vYpzsIoInfoMapper.selectList(vYpzsIoInfoLambdaQueryWrapper); Map> groupedByPhysicCode = vYpzsIoInfos.stream() @@ -1541,7 +1541,7 @@ public class CtqyyClient extends CommonHttpClient { List bizList = new ArrayList<>(); value.forEach(entity -> { IoCollectOrderBiz collectOrderBiz = new IoCollectOrderBiz(); - BasicUdirelEntity basicUdirelEntity = basicUdirelDao.selectOne(new LambdaQueryWrapper().eq(BasicUdirelEntity::getMainId, entity.getPHYSIC_CODE())); + BasicUdirelEntity basicUdirelEntity = basicUdirelDao.selectOne(new LambdaQueryWrapper().eq(BasicUdirelEntity::getMainId, entity.getPHYSIC_CODE()).last("limit 1")); if (basicUdirelEntity != null) { collectOrderBiz.setRelId(basicUdirelEntity.getId()); } else { diff --git a/src/main/java/com/glxp/mipsdl/thirddao/ctqyy/VInsurNationGoodsReturnMapper.java b/src/main/java/com/glxp/mipsdl/thirddao/ctqyy/VInsurNationGoodsReturnMapper.java index b129906..6fe3c24 100644 --- a/src/main/java/com/glxp/mipsdl/thirddao/ctqyy/VInsurNationGoodsReturnMapper.java +++ b/src/main/java/com/glxp/mipsdl/thirddao/ctqyy/VInsurNationGoodsReturnMapper.java @@ -1,9 +1,11 @@ package com.glxp.mipsdl.thirddao.ctqyy; +import com.baomidou.dynamic.datasource.annotation.DS; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.glxp.mipsdl.entity.ctqyy.VInsurNationGoodsReturn; import org.apache.ibatis.annotations.Mapper; +@DS("ctqyySql") @Mapper public interface VInsurNationGoodsReturnMapper extends BaseMapper { } \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/thirddao/ctqyy/VYpzsIoInfoMapper.java b/src/main/java/com/glxp/mipsdl/thirddao/ctqyy/VYpzsIoInfoMapper.java index 6ec1be8..a72d349 100644 --- a/src/main/java/com/glxp/mipsdl/thirddao/ctqyy/VYpzsIoInfoMapper.java +++ b/src/main/java/com/glxp/mipsdl/thirddao/ctqyy/VYpzsIoInfoMapper.java @@ -1,5 +1,6 @@ package com.glxp.mipsdl.thirddao.ctqyy; +import com.baomidou.dynamic.datasource.annotation.DS; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; @@ -8,12 +9,11 @@ import com.glxp.mipsdl.req.base.UdiwmsThrOrderRequest; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; -import java.util.List; - +@DS("ctqyySql") @Mapper public interface VYpzsIoInfoMapper extends BaseMapper { // 使用基本的 MyBatis 注解或 XML 映射 - Page selectGroupedWithPagination(IPage page, @Param("udiwmsThrOrderRequest")UdiwmsThrOrderRequest udiwmsThrOrderRequest); + Page selectGroupedWithPagination(IPage page, @Param("udiwmsThrOrderRequest") UdiwmsThrOrderRequest udiwmsThrOrderRequest); } \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/thirddao/ctqyy/VYpzsPresInfoReturnMapper.java b/src/main/java/com/glxp/mipsdl/thirddao/ctqyy/VYpzsPresInfoReturnMapper.java index 7e7020f..97e01ec 100644 --- a/src/main/java/com/glxp/mipsdl/thirddao/ctqyy/VYpzsPresInfoReturnMapper.java +++ b/src/main/java/com/glxp/mipsdl/thirddao/ctqyy/VYpzsPresInfoReturnMapper.java @@ -1,9 +1,11 @@ package com.glxp.mipsdl.thirddao.ctqyy; +import com.baomidou.dynamic.datasource.annotation.DS; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.glxp.mipsdl.entity.ctqyy.VYpzsPresInfoReturn; import org.apache.ibatis.annotations.Mapper; +@DS("ctqyySql") @Mapper public interface VYpzsPresInfoReturnMapper extends BaseMapper { } \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/other/ctqyy/VYpzsIoInfoMapper.xml b/src/main/resources/mybatis/mapper/other/ctqyy/VYpzsIoInfoMapper.xml index 57c18e7..26dea85 100644 --- a/src/main/resources/mybatis/mapper/other/ctqyy/VYpzsIoInfoMapper.xml +++ b/src/main/resources/mybatis/mapper/other/ctqyy/VYpzsIoInfoMapper.xml @@ -1,77 +1,72 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - RECEIPT_NUMBER, IO_FLAG, IO_SORT, SORT_NAME, CONSIGNOR, CONSIGNOR_NAME, CONSIGNEE, - CONSIGNEE_NAME, KEEP_BOOK_TIME, KEEP_BOOK_OPERATOR, PHYSIC_CODE, PHYSIC_NAME, BATCH_NO, - BATCH_NUMBER, QUANTITY, PACK_UNIT1, IMPORT_PRICE, IMPORT_MONEY, RETAIL_PRICE, RETAIL_MONEY - + + + + + + + + + + + + + + + + + + + + + + + + + + + RECEIPT_NUMBER, IO_FLAG, IO_SORT, SORT_NAME, CONSIGNOR, CONSIGNOR_NAME, CONSIGNEE, + CONSIGNEE_NAME, KEEP_BOOK_TIME, KEEP_BOOK_OPERATOR, PHYSIC_CODE, PHYSIC_NAME, BATCH_NO, + BATCH_NUMBER, QUANTITY, PACK_UNIT1, IMPORT_PRICE, IMPORT_MONEY, RETAIL_PRICE, RETAIL_MONEY + - + \ No newline at end of file