Browse Source

市配预约单,新增库存品这,增加货位信息字段

single_db
Diss 1 year ago
parent
commit
ba3288e386
  1. 145
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml

145
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml

@ -389,102 +389,105 @@
</select> </select>
<select id="selectAllStockList" resultType="com.logpm.distribution.vo.DistributionStockListVO"> <select id="selectAllStockList" resultType="com.logpm.distribution.vo.DistributionStockListVO">
SELECT SELECT
tenant_id, ldsl.tenant_id,
id, ldsl.id,
create_user, ldsl.create_user,
create_time, ldsl.create_time,
update_user, ldsl.update_user,
update_time, ldsl.update_time,
status, ldsl.status,
is_deleted, ldsl.is_deleted,
create_dept, ldsl.create_dept,
reserve1, ldsl.reserve1,
reserve2, ldsl.reserve2,
reserve3, ldsl.reserve3,
reserve4, ldsl.reserve4,
reserve5, ldsl.reserve5,
order_code, ldsl.order_code,
incoming_batch, ldsl.incoming_batch,
service_number, ldsl.service_number,
material_id, ldsl.material_id,
description_goods, ldsl.description_goods,
cargo_number, ldsl.cargo_number,
cargo_norms, ldsl.cargo_norms,
cargo_unit, ldsl.cargo_unit,
warehouse_id, ldsl.warehouse_id,
warehouse_name, ldsl.warehouse_name,
storage_location, ldsl.storage_location,
mall_id, ldsl.mall_id,
mall_code, ldsl.mall_code,
mall_name, ldsl.mall_name,
quantity_stock, ldsl.quantity_stock,
store_id, ldsl.store_id,
store_code, ldsl.store_code,
store_name, ldsl.store_name,
quantity_occupied, ldsl.quantity_occupied,
outbound_quantity, ldsl.outbound_quantity,
despatch, ldsl.despatch,
stock_article_id, ldsl.stock_article_id,
factory, ldsl.factory,
category, ldsl.category,
<!-- unpack,--> -- ldsl.unpack,
parcel_list_id, ldsl.parcel_list_id,
shopping_mall, ldsl.shopping_mall,
market_id, ldsl.market_id,
market_name, ldsl.market_name,
market_code, ldsl.market_code,
stock_list_code, ldsl.stock_list_code,
service_type, ldsl.service_type,
pid, ldsl.pid,
brand_name, ldsl.brand_name,
brand_id, ldsl.brand_id,
warehousing_time, ldsl.warehousing_time,
unpacking_quantity, ldsl.unpacking_quantity,
license_plate, ldsl.license_plate,
tray_id, ldsl.tray_id,
tray_name, ldsl.tray_name,
sku, ldsl.sku,
grounding_time, ldsl.grounding_time,
unpack ldsl.unpack,
lwug.position_code
FROM FROM
logpm_distribution_stock_list logpm_distribution_stock_list ldsl
JOIN
logpm_warehouse_updown_goods lwug ON ldsl.material_id = lwug.association_id
<where> <where>
service_type = #{par.serviceType} and warehouse_id = #{par.warehouseId} and is_deleted = 0 ldsl.service_type = #{par.serviceType} and ldsl.warehouse_id = #{par.warehouseId} and ldsl.is_deleted = 0
<if test="par.incomingBatch != null and par.incomingBatch != ''"> <if test="par.incomingBatch != null and par.incomingBatch != ''">
and incoming_batch like concat('%',#{par.incomingBatch},'%') and ldsl.incoming_batch like concat('%',#{par.incomingBatch},'%')
</if> </if>
<if test="par.orderCode != null and par.orderCode != ''"> <if test="par.orderCode != null and par.orderCode != ''">
and order_code like concat('%',#{par.orderCode},'%') and ldsl.order_code like concat('%',#{par.orderCode},'%')
</if> </if>
<if test="par.serviceNumber != null and par.serviceNumber != ''"> <if test="par.serviceNumber != null and par.serviceNumber != ''">
and service_number like concat('%',#{par.serviceNumber},'%') and ldsl.service_number like concat('%',#{par.serviceNumber},'%')
</if> </if>
<if test="par.marketCode != null and par.marketCode != ''"> <if test="par.marketCode != null and par.marketCode != ''">
and market_code like concat('%',#{par.marketCode},'%') and ldsl.market_code like concat('%',#{par.marketCode},'%')
</if> </if>
<if test="par.marketName != null and par.marketName != ''"> <if test="par.marketName != null and par.marketName != ''">
and market_name like concat('%',#{par.marketName},'%') and ldsl.market_name like concat('%',#{par.marketName},'%')
</if> </if>
<if test="par.storeName != null and par.storeName != ''"> <if test="par.storeName != null and par.storeName != ''">
and store_name like concat('%',#{par.storeName},'%') and ldsl.store_name like concat('%',#{par.storeName},'%')
</if> </if>
<if test="par.storeCode != null and par.storeCode != ''"> <if test="par.storeCode != null and par.storeCode != ''">
and store_code like concat('%',#{par.storeCode},'%') and ldsl.store_code like concat('%',#{par.storeCode},'%')
</if> </if>
<if test="par.storeCode != null and par.storeCode != ''"> <if test="par.storeCode != null and par.storeCode != ''">
and store_code like concat('%',#{par.storeCode},'%') and ldsl.store_code like concat('%',#{par.storeCode},'%')
</if> </if>
<if test="par.cargoNumber != null and par.cargoNumber != ''"> <if test="par.cargoNumber != null and par.cargoNumber != ''">
and cargo_number like concat('%',#{par.cargoNumber},'%') and ldsl.cargo_number like concat('%',#{par.cargoNumber},'%')
</if> </if>
<if test="par.descriptionGoods != null and par.descriptionGoods != ''"> <if test="par.descriptionGoods != null and par.descriptionGoods != ''">
and description_goods like concat('%',#{par.descriptionGoods},'%') and ldsl.description_goods like concat('%',#{par.descriptionGoods},'%')
</if> </if>
<if test="par.brandName != null and par.brandName != ''"> <if test="par.brandName != null and par.brandName != ''">
and brand_name like concat('%',#{par.brandName},'%') and ldsl.brand_name like concat('%',#{par.brandName},'%')
</if> </if>
<if test="par.sku != null and par.sku != ''"> <if test="par.sku != null and par.sku != ''">
and sku like concat('%',#{par.sku},'%') and ldsl.sku like concat('%',#{par.sku},'%')
</if> </if>
</where> </where>
</select> </select>

Loading…
Cancel
Save