From f1c3868216b85e9f856ded5f4e1f7e17aeb4f9b2 Mon Sep 17 00:00:00 2001 From: kilo Date: Thu, 3 Aug 2023 19:12:09 +0800 Subject: [PATCH] =?UTF-8?q?deliveryStatus=E5=AD=97=E6=AE=B5=E5=8F=98?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/DistributionDeliveryListMapper.xml | 75 ++++++++----------- 1 file changed, 33 insertions(+), 42 deletions(-) diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml index a9475bb40..fba5d059f 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml @@ -29,7 +29,7 @@ - + @@ -64,7 +64,7 @@ lddl.vehicle_id vehicleId, lddl.driver_id driverId, lddl.distribution_company distributionCompany, - lddl.delivery_state deliveryState, + lddl.delivery_status deliveryStatus, (SELECT GROUP_CONCAT(DISTINCT ldsu.forklift_name SEPARATOR ',') FROM logpm_distribution_signfor lds join logpm_distribution_reservation ldr on lds.reservation_id =ldr.id @@ -135,8 +135,8 @@ and lddl.type = #{param.type} - - and lddl.delivery_state = #{param.deliveryState} + + and lddl.state = #{param.state} and date_format(lddl.create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%') @@ -193,8 +193,8 @@ and lddl.distribution_company = #{param.distributionCompany} - - and lddl.delivery_state = #{param.deliveryState} + + and lddl.delivery_status = #{param.deliveryStatus} and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%') @@ -232,8 +232,8 @@ and lddl.distribution_company = #{param.distributionCompany} - - and lddl.delivery_state = #{param.deliveryState} + + and lddl.delivery_status = #{param.state} and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%') @@ -269,8 +269,8 @@ and lddl.distribution_company = #{param.distributionCompany} - - and lddl.delivery_state = #{param.deliveryState} + + and lddl.state = #{param.state} and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%') @@ -308,8 +308,8 @@ and lddl.distribution_company = #{param.distributionCompany} - - and lddl.delivery_state = #{param.deliveryState} + + and lddl.state = #{param.state} and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%') @@ -326,7 +326,7 @@ SELECT ldpl.id packageId, ldrs.stock_article_id orderId, - ldpl.order_package_code orderPackageCode, + ldpl.packet_bar_code packetBarCode, lds.reservation_id reservationId, ldpl.quantity packageNub, lddl.id deliveryId, @@ -338,14 +338,14 @@ JOIN logpm_distribution_delivery_list lddl on lddl.id = lds.delivery_id join logpm_distribution_parcel_list ldpl on ldrp.parce_list_id = ldpl.id where - lds.is_deleted =0 and lddl.id = #{deliveryId} and ldpl.order_package_code =#{barcode} + lds.is_deleted =0 and lddl.id = #{deliveryId} and ldpl.packet_bar_code =#{barcode} SELECT ldsa.id orderId, - ldsa.stock_article_code orderPackageCode, + ldsa.stock_article_code packetBarCode, lds.reservation_id reservationId, ldsa.total_number packageNub, ldsa.total_number loadedNub, @@ -407,7 +407,7 @@ SELECT ldpl.id packageId, ldrs.stock_article_id orderId, - ldpl.order_package_code orderPackageCode, + ldpl.packet_bar_code packetBarCode, lds.reservation_id reservationId, ldpl.quantity packageNub, lddl.id deliveryId, @@ -425,7 +425,7 @@ SELECT ldpl.id packageId, ldrs.stock_article_id orderId, - ldpl.order_package_code orderPackageCode, + ldpl.packet_bar_code packetBarCode, lds.reservation_id reservationId, ldpl.quantity packageNub, lddl.id deliveryId, @@ -437,12 +437,12 @@ JOIN logpm_distribution_delivery_list lddl on lddl.id = lds.delivery_id join logpm_distribution_parcel_list ldpl on ldrp.parce_list_id = ldpl.id where - lds.is_deleted =0 and lds.reservation_id =#{reservationId} + lds.is_deleted =0 and lddl.id = #{deliveryId} and lds.reservation_id =#{reservationId} SELECT ldsl.id inventoryId, - ldsl.order_package_code orderPackageCode, + ldsl.packet_bar_code packetBarCode, lds.reservation_id reservationId, lddl.id deliveryId, lddl.train_number trainNumber @@ -483,7 +483,7 @@ SELECT ldsl.id inventoryId, - ldsl.stock_list_code orderPackageCode, + ldsl.packet_bar_code packetBarCode, lds.reservation_id reservationId, lddl.id deliveryId, lddl.train_number trainNumber @@ -514,7 +514,7 @@ SELECT ldpl.id packageId, ldpl.stock_article_id orderId, - ldpl.order_package_code orderPackageCode, + ldpl.packet_bar_code packetBarCode, lds.reservation_id reservationId, ldpl.quantity packageNub, lddl.id deliveryId, @@ -526,13 +526,13 @@ JOIN logpm_distribution_stock_list ldsl ON ldrs.stocklist_id = ldsl.id join logpm_distribution_parcel_list ldpl on ldsl.parcel_list_id =ldpl.id WHERE - lds.is_deleted = 0 and lds.reservation_id = #{reservationId} and ldpl.order_package_code =#{barcode} + lds.is_deleted = 0 and lds.reservation_id = #{reservationId} and ldpl.packet_bar_code =#{barcode}