|
|
|
@ -709,7 +709,7 @@
|
|
|
|
|
LEFT JOIN logpm_distribution_parcel_list AS ldpl ON ldrp.parce_list_id = ldpl.id |
|
|
|
|
|
|
|
|
|
<where> |
|
|
|
|
lds.delivery_id = #{param.deliveryId} and ldrp.packet_bar_status in ('1','3') |
|
|
|
|
lds.delivery_id = #{param.deliveryId} and ldrp.packet_bar_status in ('1','3') and ldpl.id is not null |
|
|
|
|
<if test="param.waybillNumber !=null and param.waybillNumber != ''"> |
|
|
|
|
and ldpl.waybill_number like concat('%',#{param.waybillNumber},'%') |
|
|
|
|
</if> |
|
|
|
@ -1642,4 +1642,53 @@
|
|
|
|
|
</if> |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getReservationPackageNew" resultType="com.logpm.distribution.entity.DistributionParcelListEntity"> |
|
|
|
|
select ldpl.*,ldpl.quantity AS reservationNum from logpm_distribution_reservation_package ldrp LEFT JOIN |
|
|
|
|
logpm_distribution_parcel_list ldpl ON ldrp.parce_list_id = ldpl.id |
|
|
|
|
where reservation_id in ( |
|
|
|
|
SELECT reservation_id from logpm_distribution_signfor lds where lds.delivery_id= #{param.deliveryId} |
|
|
|
|
) and ldrp.packet_bar_status IN ( '1', '3' ) |
|
|
|
|
<if test="param.waybillNumber !=null and param.waybillNumber != ''"> |
|
|
|
|
and ldpl.waybill_number like concat('%',#{param.waybillNumber},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.serviceNumber !=null and param.serviceNumber != ''"> |
|
|
|
|
and ldpl.service_number like concat('%',#{param.serviceNumber},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.orderCode !=null and param.orderCode != ''"> |
|
|
|
|
and ldpl.order_code like concat('%',#{param.orderCode},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.orderPackageCode !=null and param.orderPackageCode != ''"> |
|
|
|
|
and ldpl.order_package_code like concat('%',#{param.orderPackageCode},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.warehouse !=null and param.warehouse != ''"> |
|
|
|
|
and ldpl.warehouse like concat('%',#{param.warehouse},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.materialName !=null and param.materialName != ''"> |
|
|
|
|
and ldpl.material_name like concat('%',#{param.materialName},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.acceptWarehouseName !=null and param.acceptWarehouseName != ''"> |
|
|
|
|
and ldpl.accept_warehouse_name like concat('%',#{param.acceptWarehouseName},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.sendWarehouseName !=null and param.sendWarehouseName != ''"> |
|
|
|
|
and ldpl.send_warehouse_name like concat('%',#{param.sendWarehouseName},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.acceptWarehouseName !=null and param.acceptWarehouseName != ''"> |
|
|
|
|
and ldpl.accept_warehouse_name like concat('%',#{param.acceptWarehouseName},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.trainNumber !=null and param.trainNumber != ''"> |
|
|
|
|
and ldpl.train_number like concat('%',#{param.trainNumber},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.firsts !=null and param.firsts != ''"> |
|
|
|
|
and ldpl.firsts like concat('%',#{param.firsts},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.second !=null and param.second != ''"> |
|
|
|
|
and ldpl.second like concat('%',#{param.second},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.thirdProduct !=null and param.thirdProduct != ''"> |
|
|
|
|
and ldpl.third_product like concat('%',#{param.thirdProduct},'%') |
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
</select> |
|
|
|
|
</mapper> |
|
|
|
|