上架修改库存;

This commit is contained in:
王奎兴
2026-01-29 16:51:47 +08:00
parent 52779f0196
commit 2a9f715406
15 changed files with 958 additions and 9 deletions
@@ -629,4 +629,56 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select id="selectListByWhere" parameterType="com.mhd.wms.domain.materialInventory.entity.MaterialInventory"
resultMap="MaterialInventoryResult">
SELECT * FROM
material_inventory a
LEFT JOIN material_base_info b on a.material_base_info_id = b.material_base_info_id
WHERE
a.del_flag = 1 AND b.shipper_id = #{shipperId} AND a.top_organization_id = #{topOrganizationId}
<if test="materialBaseInfoId != null and materialBaseInfoId != ''">
AND a.material_base_info_id = #{materialBaseInfoId}
</if>
<if test="warehouseId != null and warehouseId != ''">
AND a.warehouse_id = #{warehouseId}
</if>
<if test="storageSectionId != null and storageSectionId != ''">
AND a.storage_section_id = #{storageSectionId}
</if>
<if test="storageLocationId != null and storageLocationId != ''">
AND a.storage_location_id = #{storageLocationId}
</if>
<if test="extAttr4 != null and extAttr4 != ''">
AND a.storage_location_id = #{extAttr4}
</if>
<if test="extAttr3 != null and extAttr3 != ''">
AND a.storage_location_id = #{extAttr3}
</if>
<if test="inventoryDate != null and inventoryDate != ''">
AND a.storage_location_id = #{inventoryDate}
</if>
<if test="expiryDate != null and expiryDate != ''">
AND a.storage_location_id = #{expiryDate}
</if>
<if test="productionDate != null and productionDate != ''">
AND a.storage_location_id = #{productionDate}
</if>
<if test="extAttr2 != null and extAttr2 != ''">
AND a.storage_location_id = #{extAttr2}
</if>
<if test="extAttr1 != null and extAttr1 != ''">
AND a.storage_location_id = #{extAttr1}
</if>
<if test="boxPalletNo != null and boxPalletNo != ''">
AND a.storage_location_id = #{boxPalletNo}
</if>
<if test="sheetRefNo != null and sheetRefNo != ''">
AND a.storage_location_id = #{sheetRefNo}
</if>
<if test="batchRefNo != null and batchRefNo != ''">
AND a.storage_location_id = #{batchRefNo}
</if>
</select>
</mapper>