库存调整查询修改;
This commit is contained in:
+33
-33
@@ -74,103 +74,103 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<sql id="selectInventoryAdjustmentRecordPo1">
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and material_base_info_id = #{materialBaseInfoId}
|
||||
and a.material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialInventoryId != null ">
|
||||
and material_inventory_id = #{materialInventoryId}
|
||||
and a.material_inventory_id = #{materialInventoryId}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and material_code = #{materialCode}
|
||||
and a.material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and material_name like concat('%', #{materialName}, '%')
|
||||
and a.material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and bar_code = #{barCode}
|
||||
and a.bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="shipperId != null ">
|
||||
and shipper_id = #{shipperId}
|
||||
and a.shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="shipperName != null and shipperName != ''">
|
||||
and shipper_name like concat('%', #{shipperName}, '%')
|
||||
and a.shipper_name like concat('%', #{shipperName}, '%')
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and warehouse_id = #{warehouseId}
|
||||
and a.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and warehouse_code = #{warehouseCode}
|
||||
and a.warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
and a.warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="storageSectionId != null ">
|
||||
and storage_section_id = #{storageSectionId}
|
||||
and a.storage_section_id = #{storageSectionId}
|
||||
</if>
|
||||
<if test="storageCode != null and storageCode != ''">
|
||||
and storage_code = #{storageCode}
|
||||
and a.storage_code = #{storageCode}
|
||||
</if>
|
||||
<if test="storageName != null and storageName != ''">
|
||||
and storage_name like concat('%', #{storageName}, '%')
|
||||
and a.storage_name like concat('%', #{storageName}, '%')
|
||||
</if>
|
||||
<if test="storageLocationId != null ">
|
||||
and storage_location_id = #{storageLocationId}
|
||||
and a.storage_location_id = #{storageLocationId}
|
||||
</if>
|
||||
<if test="storageLocationCode != null and storageLocationCode != ''">
|
||||
and storage_location_code = #{storageLocationCode}
|
||||
and a.storage_location_code = #{storageLocationCode}
|
||||
</if>
|
||||
<if test="storageLocationName != null and storageLocationName != ''">
|
||||
and storage_location_name like concat('%', #{storageLocationName}, '%')
|
||||
and a.storage_location_name like concat('%', #{storageLocationName}, '%')
|
||||
</if>
|
||||
<if test="adjustType != null ">
|
||||
and adjust_type = #{adjustType}
|
||||
and a.adjust_type = #{adjustType}
|
||||
</if>
|
||||
<if test="adjustDirection != null ">
|
||||
and adjust_direction = #{adjustDirection}
|
||||
and a.adjust_direction = #{adjustDirection}
|
||||
</if>
|
||||
<if test="adjustBeforeStatusCode != null ">
|
||||
and adjust_before_status_code = #{adjustBeforeStatusCode}
|
||||
and a.adjust_before_status_code = #{adjustBeforeStatusCode}
|
||||
</if>
|
||||
<if test="adjustBeforeStatusName != null ">
|
||||
and adjust_before_status_name = #{adjustBeforeStatusName}
|
||||
and a.adjust_before_status_name = #{adjustBeforeStatusName}
|
||||
</if>
|
||||
<if test="adjustAfterStatusCode != null ">
|
||||
and adjust_after_status_code = #{adjustAfterStatusCode}
|
||||
and a.adjust_after_status_code = #{adjustAfterStatusCode}
|
||||
</if>
|
||||
<if test="adjustAfterStatusName != null ">
|
||||
and adjust_after_status_name = #{adjustAfterStatusName}
|
||||
and a.adjust_after_status_name = #{adjustAfterStatusName}
|
||||
</if>
|
||||
<if test="inventoryBeforeQuantity != null ">
|
||||
and inventory_before_quantity = #{inventoryBeforeQuantity}
|
||||
and a.inventory_before_quantity = #{inventoryBeforeQuantity}
|
||||
</if>
|
||||
<if test="allocationBeforeQuantity != null ">
|
||||
and allocation_before_quantity = #{allocationBeforeQuantity}
|
||||
and a.allocation_before_quantity = #{allocationBeforeQuantity}
|
||||
</if>
|
||||
<if test="freezeBeforeQuantity != null ">
|
||||
and freeze_before_quantity = #{freezeBeforeQuantity}
|
||||
and a.freeze_before_quantity = #{freezeBeforeQuantity}
|
||||
</if>
|
||||
<if test="inventoryAfterQuantity != null ">
|
||||
and inventory_after_quantity = #{inventoryAfterQuantity}
|
||||
and a.inventory_after_quantity = #{inventoryAfterQuantity}
|
||||
</if>
|
||||
<if test="allocationAfterQuantity != null ">
|
||||
and allocation_after_quantity = #{allocationAfterQuantity}
|
||||
and a.allocation_after_quantity = #{allocationAfterQuantity}
|
||||
</if>
|
||||
<if test="freezeAfterQuantity != null ">
|
||||
and freeze_after_quantity = #{freezeAfterQuantity}
|
||||
and a.freeze_after_quantity = #{freezeAfterQuantity}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user