Browse Source

deliveryStatus字段变更

dev-warehouse
kilo 1 year ago
parent
commit
f1c3868216
  1. 75
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml

75
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml

@ -29,7 +29,7 @@
<result column="driver_id" property="driverId"/> <result column="driver_id" property="driverId"/>
<result column="driver_name" property="driverName"/> <result column="driver_name" property="driverName"/>
<result column="distribution_company" property="distributionCompany"/> <result column="distribution_company" property="distributionCompany"/>
<result column="delivery_state" property="deliveryState"/> <result column="delivery_status" property="deliveryStatus"/>
<result column="customers_number" property="customersNumber"/> <result column="customers_number" property="customersNumber"/>
<result column="price" property="price"/> <result column="price" property="price"/>
<result column="added_services_id" property="addedServicesId"/> <result column="added_services_id" property="addedServicesId"/>
@ -64,7 +64,7 @@
lddl.vehicle_id vehicleId, lddl.vehicle_id vehicleId,
lddl.driver_id driverId, lddl.driver_id driverId,
lddl.distribution_company distributionCompany, lddl.distribution_company distributionCompany,
lddl.delivery_state deliveryState, lddl.delivery_status deliveryStatus,
(SELECT GROUP_CONCAT(DISTINCT ldsu.forklift_name SEPARATOR ',') FROM (SELECT GROUP_CONCAT(DISTINCT ldsu.forklift_name SEPARATOR ',') FROM
logpm_distribution_signfor lds logpm_distribution_signfor lds
join logpm_distribution_reservation ldr on lds.reservation_id =ldr.id join logpm_distribution_reservation ldr on lds.reservation_id =ldr.id
@ -135,8 +135,8 @@
<if test="param.type != null and param.type!=''"> <if test="param.type != null and param.type!=''">
and lddl.type = #{param.type} and lddl.type = #{param.type}
</if> </if>
<if test="param.deliveryState != null and param.deliveryState!=''"> <if test="param.state != null and param.state!=''">
and lddl.delivery_state = #{param.deliveryState} and lddl.state = #{param.state}
</if> </if>
<if test="param.createTime_query!=null and param.createTime_query!=''"> <if test="param.createTime_query!=null and param.createTime_query!=''">
and date_format(lddl.create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%') and date_format(lddl.create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%')
@ -193,8 +193,8 @@
<if test="param.distributionCompany != null and param.distributionCompany!=''"> <if test="param.distributionCompany != null and param.distributionCompany!=''">
and lddl.distribution_company = #{param.distributionCompany} and lddl.distribution_company = #{param.distributionCompany}
</if> </if>
<if test="param.deliveryState != null and param.deliveryState!=''"> <if test="param.deliveryStatus != null and param.deliveryStatus!=''">
and lddl.delivery_state = #{param.deliveryState} and lddl.delivery_status = #{param.deliveryStatus}
</if> </if>
<if test="param.createTime_query!=null and param.createTime_query!=''"> <if test="param.createTime_query!=null and param.createTime_query!=''">
and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%') and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%')
@ -232,8 +232,8 @@
<if test="param.distributionCompany != null and param.distributionCompany!=''"> <if test="param.distributionCompany != null and param.distributionCompany!=''">
and lddl.distribution_company = #{param.distributionCompany} and lddl.distribution_company = #{param.distributionCompany}
</if> </if>
<if test="param.deliveryState != null and param.deliveryState!=''"> <if test="param.deliveryStatus != null and param.deliveryStatus!=''">
and lddl.delivery_state = #{param.deliveryState} and lddl.delivery_status = #{param.state}
</if> </if>
<if test="param.createTime_query!=null and param.createTime_query!=''"> <if test="param.createTime_query!=null and param.createTime_query!=''">
and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%') 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.distribution_company = #{param.distributionCompany}
</if> </if>
<if test="param.deliveryState != null and param.deliveryState!=''"> <if test="param.state != null and param.state!=''">
and lddl.delivery_state = #{param.deliveryState} and lddl.state = #{param.state}
</if> </if>
<if test="param.createTime_query!=null and param.createTime_query!=''"> <if test="param.createTime_query!=null and param.createTime_query!=''">
and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%') and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%')
@ -308,8 +308,8 @@
<if test="param.distributionCompany != null and param.distributionCompany!=''"> <if test="param.distributionCompany != null and param.distributionCompany!=''">
and lddl.distribution_company = #{param.distributionCompany} and lddl.distribution_company = #{param.distributionCompany}
</if> </if>
<if test="param.deliveryState != null and param.deliveryState!=''"> <if test="param.state != null and param.state!=''">
and lddl.delivery_state = #{param.deliveryState} and lddl.state = #{param.state}
</if> </if>
<if test="param.createTime_query!=null and param.createTime_query!=''"> <if test="param.createTime_query!=null and param.createTime_query!=''">
and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%') and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%')
@ -326,7 +326,7 @@
SELECT SELECT
ldpl.id packageId, ldpl.id packageId,
ldrs.stock_article_id orderId, ldrs.stock_article_id orderId,
ldpl.order_package_code orderPackageCode, ldpl.packet_bar_code packetBarCode,
lds.reservation_id reservationId, lds.reservation_id reservationId,
ldpl.quantity packageNub, ldpl.quantity packageNub,
lddl.id deliveryId, lddl.id deliveryId,
@ -338,14 +338,14 @@
JOIN logpm_distribution_delivery_list lddl on lddl.id = lds.delivery_id 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 join logpm_distribution_parcel_list ldpl on ldrp.parce_list_id = ldpl.id
where 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> </select>
<select id="selectdeliverypallet" resultType="com.logpm.distribution.entity.DistributionLoadscanEntity"> <select id="selectdeliverypallet" resultType="com.logpm.distribution.entity.DistributionLoadscanEntity">
SELECT SELECT
ldpl.id packageId, ldpl.id packageId,
ldrs.stock_article_id orderId, ldrs.stock_article_id orderId,
ldpl.order_package_code orderPackageCode, ldpl.packet_bar_code packetBarCode,
lds.reservation_id reservationId, lds.reservation_id reservationId,
ldpl.quantity packageNub, ldpl.quantity packageNub,
lddl.id deliveryId, lddl.id deliveryId,
@ -390,7 +390,7 @@
<select id="selectOrderpallet" resultType="com.logpm.distribution.entity.DistributionLoadscanEntity"> <select id="selectOrderpallet" resultType="com.logpm.distribution.entity.DistributionLoadscanEntity">
SELECT SELECT
ldsa.id orderId, ldsa.id orderId,
ldsa.stock_article_code orderPackageCode, ldsa.stock_article_code packetBarCode,
lds.reservation_id reservationId, lds.reservation_id reservationId,
ldsa.total_number packageNub, ldsa.total_number packageNub,
ldsa.total_number loadedNub, ldsa.total_number loadedNub,
@ -407,7 +407,7 @@
SELECT SELECT
ldpl.id packageId, ldpl.id packageId,
ldrs.stock_article_id orderId, ldrs.stock_article_id orderId,
ldpl.order_package_code orderPackageCode, ldpl.packet_bar_code packetBarCode,
lds.reservation_id reservationId, lds.reservation_id reservationId,
ldpl.quantity packageNub, ldpl.quantity packageNub,
lddl.id deliveryId, lddl.id deliveryId,
@ -425,7 +425,7 @@
SELECT SELECT
ldpl.id packageId, ldpl.id packageId,
ldrs.stock_article_id orderId, ldrs.stock_article_id orderId,
ldpl.order_package_code orderPackageCode, ldpl.packet_bar_code packetBarCode,
lds.reservation_id reservationId, lds.reservation_id reservationId,
ldpl.quantity packageNub, ldpl.quantity packageNub,
lddl.id deliveryId, lddl.id deliveryId,
@ -437,12 +437,12 @@
JOIN logpm_distribution_delivery_list lddl on lddl.id = lds.delivery_id 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 join logpm_distribution_parcel_list ldpl on ldrp.parce_list_id = ldpl.id
where where
lds.is_deleted =0 and lds.reservation_id =#{reservationId} lds.is_deleted =0 and lddl.id = #{deliveryId} and lds.reservation_id =#{reservationId}
</select> </select>
<select id="selectdeliverOneNo" resultType="com.logpm.distribution.entity.DistributionLoadscanEntity"> <select id="selectdeliverOneNo" resultType="com.logpm.distribution.entity.DistributionLoadscanEntity">
SELECT SELECT
ldsa.id orderId, ldsa.id orderId,
ldsa.stock_article_code orderPackageCode, ldsa.stock_article_code packetBarCode,
lds.reservation_id reservationId, lds.reservation_id reservationId,
ldsa.total_number packageNub, ldsa.total_number packageNub,
ldsa.total_number loadedNub, ldsa.total_number loadedNub,
@ -468,7 +468,7 @@
<select id="selectdeliveryworkVn" resultType="com.logpm.distribution.entity.DistributionLoadscaninvnEntity"> <select id="selectdeliveryworkVn" resultType="com.logpm.distribution.entity.DistributionLoadscaninvnEntity">
SELECT SELECT
ldsl.id inventoryId, ldsl.id inventoryId,
ldsl.order_package_code orderPackageCode, ldsl.packet_bar_code packetBarCode,
lds.reservation_id reservationId, lds.reservation_id reservationId,
lddl.id deliveryId, lddl.id deliveryId,
lddl.train_number trainNumber lddl.train_number trainNumber
@ -483,7 +483,7 @@
<select id="selectdeliveryworkVnId" resultType="com.logpm.distribution.entity.DistributionLoadscaninvnEntity"> <select id="selectdeliveryworkVnId" resultType="com.logpm.distribution.entity.DistributionLoadscaninvnEntity">
SELECT SELECT
ldsl.id inventoryId, ldsl.id inventoryId,
ldsl.order_package_code orderPackageCode, ldsl.packet_bar_code packetBarCode,
lds.reservation_id reservationId, lds.reservation_id reservationId,
lddl.id deliveryId, lddl.id deliveryId,
lddl.train_number trainNumber lddl.train_number trainNumber
@ -498,7 +498,7 @@
<select id="selectdeliverOnevn" resultType="com.logpm.distribution.entity.DistributionLoadscaninvnEntity"> <select id="selectdeliverOnevn" resultType="com.logpm.distribution.entity.DistributionLoadscaninvnEntity">
SELECT SELECT
ldsl.id inventoryId, ldsl.id inventoryId,
ldsl.stock_list_code orderPackageCode, ldsl.packet_bar_code packetBarCode,
lds.reservation_id reservationId, lds.reservation_id reservationId,
lddl.id deliveryId, lddl.id deliveryId,
lddl.train_number trainNumber lddl.train_number trainNumber
@ -514,7 +514,7 @@
SELECT SELECT
ldpl.id packageId, ldpl.id packageId,
ldpl.stock_article_id orderId, ldpl.stock_article_id orderId,
ldpl.order_package_code orderPackageCode, ldpl.packet_bar_code packetBarCode,
lds.reservation_id reservationId, lds.reservation_id reservationId,
ldpl.quantity packageNub, ldpl.quantity packageNub,
lddl.id deliveryId, lddl.id deliveryId,
@ -526,13 +526,13 @@
JOIN logpm_distribution_stock_list ldsl ON ldrs.stocklist_id = ldsl.id 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 join logpm_distribution_parcel_list ldpl on ldsl.parcel_list_id =ldpl.id
WHERE 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}
</select> </select>
<select id="selectdeliveryworkVnScanStock" resultType="com.logpm.distribution.entity.DistributionLoadscaninvnEntity"> <select id="selectdeliveryworkVnScanStock" resultType="com.logpm.distribution.entity.DistributionLoadscaninvnEntity">
SELECT SELECT
lds.id packageId, lds.id packageId,
lds.stock_article orderId, lds.stock_article orderId,
lds.coding orderPackageCode, lds.coding packetBarCode,
lds.reservation_id reservationId, lds.reservation_id reservationId,
1 packageNub, 1 packageNub,
lddl.id deliveryId, lddl.id deliveryId,
@ -543,16 +543,7 @@
logpm_distribution_signfor ldsf on lddl.id = ldsf.delivery_id logpm_distribution_signfor ldsf on lddl.id = ldsf.delivery_id
join join
logpm_distribution_stock lds on lds.reservation_id = ldsf.reservation_id logpm_distribution_stock lds on lds.reservation_id = ldsf.reservation_id
<where> where lddl.reservation_id = #{reservationId} and lds.coding =#{barcode}
lds.coding =#{barcode}
<if test="reservationId!=null and reservationId!=''">
and ldsf.reservation_id = #{reservationId}
</if>
<if test="deliveryId!=null and deliveryId!=''">
and ldsf.delivery_id = #{deliveryId}
</if>
</where>
</select> </select>
<select id="selectDistributionAppDeliveryListPage" resultType="com.logpm.distribution.vo.app.DistributionAppDeliveryListVO"> <select id="selectDistributionAppDeliveryListPage" resultType="com.logpm.distribution.vo.app.DistributionAppDeliveryListVO">
SELECT SELECT
@ -566,7 +557,7 @@
lddl.driver_name driverName, lddl.driver_name driverName,
lddl.vehicle_id vehicleId, lddl.vehicle_id vehicleId,
lddl.driver_id driverId, lddl.driver_id driverId,
lddl.delivery_state deliveryState, lddl.state state,
lddl.preparation_time preparationTime, lddl.preparation_time preparationTime,
-- lddl.distribution_company distributionCompany, -- lddl.distribution_company distributionCompany,
-- lddl.state state, -- lddl.state state,
@ -665,8 +656,8 @@
<if test="param.distributionCompany != null and param.distributionCompany!=''"> <if test="param.distributionCompany != null and param.distributionCompany!=''">
and lddl.distribution_company = #{param.distributionCompany} and lddl.distribution_company = #{param.distributionCompany}
</if> </if>
<if test="param.deliveryState != null and param.deliveryState!=''"> <if test="param.deliveryStatus != null and param.deliveryStatus!=''">
and lddl.delivery_state = #{param.deliveryState} and lddl.delivery_status = #{param.state}
</if> </if>
<if test="param.createTime_query!=null and param.createTime_query!=''"> <if test="param.createTime_query!=null and param.createTime_query!=''">
and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%') and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%')
@ -704,8 +695,8 @@
<if test="param.distributionCompany != null and param.distributionCompany!=''"> <if test="param.distributionCompany != null and param.distributionCompany!=''">
and lddl.distribution_company = #{param.distributionCompany} and lddl.distribution_company = #{param.distributionCompany}
</if> </if>
<if test="param.deliveryState != null and param.deliveryState!=''"> <if test="param.deliveryStatus != null and param.deliveryStatus!=''">
and lddl.delivery_state = #{param.deliveryState} and lddl.delivery_status = #{param.deliveryStatus}
</if> </if>
<if test="param.createTime_query!=null and param.createTime_query!=''"> <if test="param.createTime_query!=null and param.createTime_query!=''">
and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%') and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%')
@ -731,7 +722,7 @@
</select> </select>
<select id="selectDistributionAppDeliveryOrder" resultType="com.logpm.distribution.vo.app.DistributionAppStockArticleVO"> <select id="selectDistributionAppDeliveryOrder" resultType="com.logpm.distribution.vo.app.DistributionAppStockArticleVO">
SELECT SELECT
ldsa.order_self_numbering orderSelfNumbering, ldsa.order_code orderCode,
ldsa.complete_set completeSet, ldsa.complete_set completeSet,
ldrs.reservation_num reservationNum, ldrs.reservation_num reservationNum,
(SELECT COALESCE(COUNT(*), 0) from logpm_distribution_loadscan ldl WHERE ldl.order_id =ldsa.id and ldl.scan_status !=1 ) loadingNub (SELECT COALESCE(COUNT(*), 0) from logpm_distribution_loadscan ldl WHERE ldl.order_id =ldsa.id and ldl.scan_status !=1 ) loadingNub

Loading…
Cancel
Save