Browse Source

Merge remote-tracking branch 'origin/dev' into dev

dist.1.3.0
zhaoqiaobo 11 months ago
parent
commit
0e068eb26d
  1. 44
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataTrayMapper.xml

44
blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataTrayMapper.xml

@ -172,23 +172,23 @@
</select> </select>
<select id="selectInventoryList" resultType="com.logpm.basicdata.vo.WarehouseStockListVO"> <select id="selectInventoryList" resultType="com.logpm.basicdata.vo.WarehouseStockListVO">
SELECT SELECT
ldsl.sku sku, ldsl.sku sku,
ldsl.description_goods descriptionGoods, ldsl.description_goods descriptionGoods,
ldsl.cargo_number cargoNumber, ldsl.cargo_number cargoNumber,
ldsl.cargo_unit cargoUnit, ldsl.cargo_unit cargoUnit,
ldsl.cargo_norms cargoNorms, ldsl.cargo_norms cargoNorms,
ldsl.market_name marketName, ldsl.market_name marketName,
ldsl.warehouse_name warehouseName, ldsl.warehouse_name warehouseName,
lwug.position_code positionCode, lwga.qr_code positionCode,
lwga.column_num columnNum, lwtg.create_time operateTime,
lwga.layer_num layerNum, lwtg.num num,
lwtg.create_time operateTime, lwtg.create_user operateUser
lwtg.num num,
lwtg.create_user operateUser
FROM FROM
logpm_warehouse_tray_goods lwtg logpm_warehouse_tray_goods lwtg
JOIN logpm_distribution_stock_list ldsl ON lwtg.association_id = ldsl.material_id JOIN logpm_distribution_stock_list ldsl ON lwtg.association_id = ldsl.material_id
left join (logpm_warehouse_updown_goods lwug join logpm_warehouse_goods_allocation lwga on lwug.allocation_id =lwga.id) on lwug.association_id = ldsl.material_id LEFT JOIN logpm_warehouse_tary_allocation AS lwta ON lwtg.tray_id = lwta.tray_id
LEFT JOIN logpm_warehouse_updown_goods AS lwug ON lwta.allocation_id = lwug.allocation_id
LEFT JOIN logpm_warehouse_goods_allocation AS lwga ON lwga.id = lwug.allocation_id
<where> <where>
ldsl.is_deleted = 0 and lwtg.is_deleted = 0 and lwtg.association_type = 4 and lwtg.tray_id = #{param.id} ldsl.is_deleted = 0 and lwtg.is_deleted = 0 and lwtg.association_type = 4 and lwtg.tray_id = #{param.id}
<if test="param.cargoNumber !=null and param.cargoNumber != ''"> <if test="param.cargoNumber !=null and param.cargoNumber != ''">
@ -197,12 +197,12 @@
<if test="param.descriptionGoods !=null and param.descriptionGoods != ''"> <if test="param.descriptionGoods !=null and param.descriptionGoods != ''">
and ldsl.description_goods like concat('%',#{param.descriptionGoods},'%') and ldsl.description_goods like concat('%',#{param.descriptionGoods},'%')
</if> </if>
<if test="param.columnNum !=null and param.columnNum != ''"> <!-- <if test="param.columnNum !=null and param.columnNum != ''">-->
and ldsl.column_num like concat('%',#{param.columnNum},'%') <!-- and ldsl.column_num like concat('%',#{param.columnNum},'%')-->
</if> <!-- </if>-->
<if test="param.layerNum !=null and param.layerNum != ''"> <!-- <if test="param.layerNum !=null and param.layerNum != ''">-->
and ldsl.layer_num like concat('%',#{param.layerNum},'%') <!-- and ldsl.layer_num like concat('%',#{param.layerNum},'%')-->
</if> <!-- </if>-->
<if test="param.cargoNorms !=null and param.cargoNorms != ''"> <if test="param.cargoNorms !=null and param.cargoNorms != ''">
and ldsl.cargo_norms like concat('%',#{param.cargoNorms},'%') and ldsl.cargo_norms like concat('%',#{param.cargoNorms},'%')
</if> </if>

Loading…
Cancel
Save