@ -64,38 +64,38 @@
</select>
<select id= "pageListApp" resultType= "com.logpm.distribution.vo.DistrilbutionBillLadingAppVO" >
select ldbl .id billLadingId,
select la d.id billLadingId,
3 carType,
ldbl .`condition` `condition`,
ldbl .Pick_up_plate pickUpPlate,
ldbl .consignee consignee,
ldbl .create_time,
ldbl .pick_up_time,
ldbl .stock_article_id stockArticleId
from logpm_distrilbution_bill_lading ldbl
where ldbl .is_deleted = 0
<if test= "param.pickUpTimeStart != null and param.pickUpTimeStart!='' " > ldbl .pick_up_time < = #{param.pickUpTimeStart} </if>
<if test= "param.pickUpTimeEnd != null and param.pickUpTimeEnd!='' " > ldbl .pick_up_time > = #{param.pickUpTimeEnd} </if>
la d.`condition` `condition`,
la d.Pick_up_plate pickUpPlate,
la d.consignee consignee,
la d.create_time,
la d.pick_up_time,
la d.stock_article_id stockArticleId
from logpm_distrilbution_bill_lading la d
where la d.is_deleted = 0
<if test= "param.pickUpTimeStart != null and param.pickUpTimeStart!='' " > and la d.pick_up_time < = #{param.pickUpTimeStart} </if>
<if test= "param.pickUpTimeEnd != null and param.pickUpTimeEnd!='' " > and lad .pick_up_time > = #{param.pickUpTimeEnd} </if>
</select>
<select id= "selectDataByBillLadingId" resultType= "com.logpm.distribution.vo.DistrilbutionBillLadingAppVO" >
select ldbl .id billLadingId,
select la d.id billLadingId,
3 carType,
ldbl .`condition` `condition`,
ldbl .Pick_up_plate pickUpPlate,
ldbl .consignee consignee,
ldbl .create_time,
ldbl .pick_up_time,
ldbl .stock_article_id stockArticleId
from logpm_distrilbution_bill_lading ldbl
where ldbl .is_deleted = 0
and ldbl .id = #{billLadingId}
la d.`condition` `condition`,
la d.Pick_up_plate pickUpPlate,
la d.consignee consignee,
la d.create_time,
la d.pick_up_time,
la d.stock_article_id stockArticleId
from logpm_distrilbution_bill_lading la d
where la d.is_deleted = 0
and la d.id = #{billLadingId}
</select>
<select id= "selectDetailList" resultType= "com.logpm.distribution.vo.app.DistrilbutionAppBillLadingDetailVO" >
select ldpl.stock_article_id stockArticleId,
ldpl.order_self_numbering orderSelfNumbering ,
ldpl.packet_bar_code packetBar Code,
ldpl.order_code orderCode ,
ldpl.order_package_code orderPackage Code,
case
when ldbls.id is null then 1
else 2
@ -106,8 +106,8 @@
<where >
and ldpl.is_deleted = 0
and ldpl.stock_article_id = #{stockArticleId}
<if test= "orderSelfNumbering != null and orderSelfNumbering !=''" >
and ldpl.order_self_numbering = ${orderSelfNumbering }
<if test= "orderCode != null and orderCode !=''" >
and ldpl.order_code = ${orderCode }
</if>
<if test= "scanStatus != null and scanStatus==1" >
and ldbls.id is null
@ -118,15 +118,15 @@
</where>
</select>
<select id= "getOneOwn" resultType= "com.logpm.distribution.vo.DistrilbutionBillLadingVO" >
select ldbl .id,ldbl .stockup_code stockupCode,ldbl .pick_up_time pickUpTime,ldbl .stockup_area stockupArea,ldbl .consignee,
ldbl .pick_up_plate pickUpPlate,ldbl .total_cost totalCost
from logpm_distrilbution_bill_lading ldbl
select la d.id,la d.stockup_code stockupCode,la d.pick_up_time pickUpTime,la d.stockup_area stockupArea,la d.consignee,
la d.pick_up_plate pickUpPlate,la d.total_cost totalCost
from logpm_distrilbution_bill_lading la d
<where >
ldbl .id = #{id}
la d.id = #{id}
</where>
</select>
<select id= "detailReservationOwn" resultType= "com.logpm.distribution.vo.DistrilbutionBillLadingOwnVO" >
select ldpi.id,ldpi.packet_bar_code packetBar Code,ldpi.firsts ,ldpi.second ,ldpi.third_product thirdProduct,ldpi.material_name materialName,
select ldpi.id,ldpi.order_package_code orderPackage Code,ldpi.firsts ,ldpi.second ,ldpi.third_product thirdProduct,ldpi.material_name materialName,
ldpi.goods_allocation goodsAllocation,ldpi.pallet
from logpm_distribution_parcel_list ldpi
where ldpi.stock_article_id in (
@ -136,7 +136,7 @@
)
</select>
<select id= "detailOrderOwn" resultType= "com.logpm.distribution.vo.DistrilbutionBillLadingOwnVO" >
select ldsa.id,ldsa.order_self_numbering orderSelfNumbering ,ldsa.description_goods descriptionGoods,ldsa.total_number totalNumber,
select ldsa.id,ldsa.order_code orderCode ,ldsa.description_goods descriptionGoods,ldsa.total_number totalNumber,
ldbl.stockup_status stockupStatus,ldbl.stockip_allocation stockipAllocation,
( select count(*)
from logpm_distribution_stock lds
@ -158,7 +158,7 @@
</where>
</select>
<select id= "getInventoryOwn" resultType= "com.logpm.distribution.vo.DistrilbutionBillLadingOwnVO" >
select ldsi.id,ldsi.sku,ldsi.order_self_numbering ,ldsi.description_goods ,ldsi.cargo_unit ,lddd.quantity ,ldsi.tray_name ,ldsi.storage_location
select ldsi.id,ldsi.sku,ldsi.order_code ,ldsi.description_goods ,ldsi.cargo_unit ,lddd.quantity ,ldsi.tray_name ,ldsi.storage_location
from logpm_distribution_delivery_details lddd LEFT JOIN logpm_distribution_stock_list ldsi on lddd.stock_list_id = ldsi.id
<where >
lddd.bill_lading_id = #{id}
@ -166,8 +166,8 @@
</select>
<select id= "getDetailOne" resultType= "com.logpm.distribution.vo.DistrilbutionBillLadingDetailsVO" >
select ldbl .id,ldbl .pick_up_time ,ldbl .consignee ,ldbl .pick_up_plate ,ldbl .delivery_document ,ldbl .certificate_type ,ldbl .total_cost
from logpm_distrilbution_bill_lading ldbl
select la d.id,la d.pick_up_time ,la d.consignee ,la d.pick_up_plate ,la d.delivery_document ,la d.certificate_type ,la d.total_cost
from logpm_distrilbution_bill_lading la d
<where >
ldbl.id = #{id}
</where>