From e539bda3ad261bcae6816b1a145c017d0419896f Mon Sep 17 00:00:00 2001 From: PigBaoBei <2739175034@qq.com> Date: Tue, 21 Jan 2025 15:01:45 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E7=AD=BE=E6=94=B6=E8=AF=A6=E6=83=85BUG?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../logpm/distribution/vo/DistributionSignforVO.java | 8 +++++++- .../mapper/DistributionSignforMapper.xml | 12 +++++++++--- .../service/impl/DistributionSignforServiceImpl.java | 3 ++- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionSignforVO.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionSignforVO.java index 2f6ed1e13..260dab40a 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionSignforVO.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionSignforVO.java @@ -50,6 +50,11 @@ public class DistributionSignforVO extends DistributionSignforEntity { */ @ApiModelProperty(value = "客户电话") private String deliveryPhone; + /** + * 定位打卡位置 + */ + @ApiModelProperty(value = "定位打卡位置") + private String positioningAdr; /** * 客户地址 */ @@ -90,7 +95,7 @@ public class DistributionSignforVO extends DistributionSignforEntity { * 计划总数 */ @ApiModelProperty(value = "计划总数") - private Integer totalNum; + private Integer planNum; /** * 装车件数 */ @@ -340,6 +345,7 @@ public class DistributionSignforVO extends DistributionSignforEntity { @ApiModelProperty(value = "商城ID") private List clientIds; + /** * 签收图片路径,多个 */ diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionSignforMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionSignforMapper.xml index 4f9a976eb..5407946b4 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionSignforMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionSignforMapper.xml @@ -743,15 +743,20 @@ lds.clerk_sign_pictures clerkSignPictures, lds.delivery_sign_pictures deliverySignPictures, ldr.reservation_date reservationDate, - lds.positioning_adr positioningAdr, + (ldr.reservation_num + ldr.reservation_stock_list_num) AS planNum, (lds.loaded_number + lds.loadedin_number) loadingNum, (lds.received_quantity + lds.receivedin_quantity) signingNum, lddl.train_number trainNumber, lddl.vehicle_name vehicleName, lddl.driver_name driverName, - lddl.loading_team_name loadingTeamName, lddl.unloading_team_name unLoadingTeamName, + lds.signee_name AS signeeName, + lds.examine_user_name AS examineUserName, + lds.sjsigning_time AS sjsigningTime, + lds.signing_time AS signingTime, + lddl.task_time AS taskTime, + GROUP_CONCAT(DISTINCT ldp.latitude_and_longitude) AS positioningAdr, CASE WHEN ldr.delivery_type = '1' THEN '商配' @@ -773,7 +778,8 @@ FROM logpm_distribution_signfor lds JOIN logpm_distribution_delivery_list lddl ON lddl.id = lds.delivery_id - JOIN logpm_distribution_reservation ldr ON ldr.id = lds.reservation_id + JOIN logpm_distribution_reservation ldr ON ldr.id = lds.reservation_id AND ldr.reservation_status != 40 + LEFT JOIN logpm_distribution_positioning AS ldp ON lds.reservation_id = lds.reservation_id AND ldp.is_deleted = 0 where lds.is_deleted = 0 and lds.id = #{id} diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java index c6fc16c05..5c46c3898 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java @@ -3706,13 +3706,14 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl reservationStockarticleEntityList = distributionReservationStockarticleService.list(Wrappers.query().lambda() .eq(DistributionReservationStockarticleEntity::getReservationId, signforEntity.getReservationId()) .ne(DistributionReservationStockarticleEntity::getStockArticleStatus, ReservationOrderStatusConstant.quxiao.getValue())); From 70eaba15e4fa326ceace8b104b00df7c2fda595d Mon Sep 17 00:00:00 2001 From: "pref_mail@163.com" Date: Tue, 21 Jan 2025 15:22:09 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E5=8F=96=E6=B6=88feign=20=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../feign/IWarehouseUpdownTypeClient.java | 15 +++--- .../ExpenseDispatchOrderDetailMapper.xml | 54 ------------------- .../feign/WarehouseUpdownTypeClient.java | 12 +---- 3 files changed, 7 insertions(+), 74 deletions(-) diff --git a/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/feign/IWarehouseUpdownTypeClient.java b/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/feign/IWarehouseUpdownTypeClient.java index cd7d991b7..7a8ec2271 100644 --- a/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/feign/IWarehouseUpdownTypeClient.java +++ b/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/feign/IWarehouseUpdownTypeClient.java @@ -43,7 +43,7 @@ public interface IWarehouseUpdownTypeClient { String TOP = API_PREFIX + "/top"; @GetMapping(TOP + "/downPackage") - R downPackage(@RequestParam("orderPackageCodes") String orderPackageCodes, @RequestParam("warehouseId") Long warehouseId,@RequestParam("remark") String remark); + R downPackage(@RequestParam String orderPackageCodes, @RequestParam Long warehouseId,@RequestParam String remark); @PostMapping(TOP + "/downDeliveryPackage") @@ -55,26 +55,23 @@ public interface IWarehouseUpdownTypeClient { @PostMapping(TOP + "/downStock") R downStock(@RequestBody List stockLists); - @PostMapping(TOP + "/packageChangeStock") - boolean packageChangeStock(@RequestBody List orderPackageCodes); @GetMapping(TOP + "/downPackageOrDelTray") - R downPackageOrDelTray(@RequestParam("orderPackageCodes") String orderPackageCodes, @RequestParam("warehouseId") Long warehouseId,@RequestParam("remark") String remark); + R downPackageOrDelTray(@RequestParam String orderPackageCodes, @RequestParam Long warehouseId,@RequestParam String remark); @GetMapping(TOP + "/downPackageAndDelTrayAndIsUpdate") - R downPackageAndDelTrayAndIsUpdate(@RequestParam("orderPackageCodes") String orderPackageCodes, @RequestParam("warehouseId") Long warehouseId,@RequestParam("remark") String remark,@RequestParam("isOrNo") boolean isOrNo); + R downPackageAndDelTrayAndIsUpdate(@RequestParam String orderPackageCodes, @RequestParam Long warehouseId,@RequestParam String remark,@RequestParam boolean isOrNo); @GetMapping(TOP + "/downTray") - R downTray(@RequestParam("trayCode") String trayCode, @RequestParam("warehouseId") Long warehouseId); + R downTray(@RequestParam String trayCode, @RequestParam Long warehouseId); @GetMapping(TOP + "/upShelfTray") - boolean upShelfTray(@RequestParam("trayCode") String trayCode, @RequestParam("locationId") Long locationId, @RequestParam("warehouseId") Long warehouseId); + boolean upShelfTray(@RequestParam String trayCode, @RequestParam Long locationId, @RequestParam Long warehouseId); @GetMapping(TOP + "/upShelfPackage") boolean upShelfPackage(@RequestParam String orderPackageCode, @RequestParam Long locationId, @RequestParam Long warehouseId,@RequestParam String remark); - @GetMapping(TOP + "/findUpdownTypeInforByAllocationId") - R findUpdownTypeInforByAllocationId(@RequestParam Long allocationId, @RequestParam Long warehouseId); + @GetMapping(TOP + "/findAllGoodsByAllocationId") R findAllGoodsByAllocationId(@RequestParam Long allocationId, @RequestParam Long warehouseId); @GetMapping(TOP + "/findZeroAllocation") diff --git a/blade-service/logpm-statisticsdata/src/main/java/com/logpm/statistics/mapper/ExpenseDispatchOrderDetailMapper.xml b/blade-service/logpm-statisticsdata/src/main/java/com/logpm/statistics/mapper/ExpenseDispatchOrderDetailMapper.xml index 94678069c..2e659c8dd 100644 --- a/blade-service/logpm-statisticsdata/src/main/java/com/logpm/statistics/mapper/ExpenseDispatchOrderDetailMapper.xml +++ b/blade-service/logpm-statisticsdata/src/main/java/com/logpm/statistics/mapper/ExpenseDispatchOrderDetailMapper.xml @@ -21,60 +21,6 @@ - -