diff --git a/mhd_wms/src/main/resources/mapper/materialInventory/MaterialInventoryMapper.xml b/mhd_wms/src/main/resources/mapper/materialInventory/MaterialInventoryMapper.xml
index 4a0019a6e..10d781f3f 100644
--- a/mhd_wms/src/main/resources/mapper/materialInventory/MaterialInventoryMapper.xml
+++ b/mhd_wms/src/main/resources/mapper/materialInventory/MaterialInventoryMapper.xml
@@ -690,6 +690,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
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.organization_id = #{organizationId}
+ AND TRUNC(a.EXT_ATTR_4) = TRUNC(#{extAttr4})
+ AND TRUNC(a.EXT_ATTR_3) = TRUNC(#{extAttr3})
+ AND TRUNC(a.inventory_date) = TRUNC(#{inventoryDate})
+ AND TRUNC(a.EXPIRY_DATE) = TRUNC(#{expiryDate})
+ AND TRUNC(a.PRODUCTION_DATE) = TRUNC(#{productionDate})
+ AND a.EXT_ATTR_2 = #{extAttr2}
+ AND a.EXT_ATTR_1 = #{extAttr1}
+ AND a.BOX_PALLET_NO = #{boxPalletNo}
+ AND a.SHEET_REF_NO = #{sheetRefNo}
+ AND a.BATCH_REF_NO = #{batchRefNo}
AND a.material_base_info_id = #{materialBaseInfoId}
@@ -702,36 +712,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND a.storage_location_id = #{storageLocationId}
-
- AND TRUNC(a.EXT_ATTR_4) = TRUNC(#{extAttr4})
-
-
- AND TRUNC(a.EXT_ATTR_3) = TRUNC(#{extAttr3})
-
-
- AND TRUNC(a.inventory_date) = TRUNC(#{inventoryDate})
-
-
- AND TRUNC(a.EXPIRY_DATE) = TRUNC(#{expiryDate})
-
-
- AND TRUNC(a.PRODUCTION_DATE) = TRUNC(#{productionDate})
-
-
- AND a.EXT_ATTR_2 = #{extAttr2}
-
-
- AND a.EXT_ATTR_1 = #{extAttr1}
-
-
- AND a.BOX_PALLET_NO = #{boxPalletNo}
-
-
- AND a.SHEET_REF_NO = #{sheetRefNo}
-
-
- AND a.BATCH_REF_NO = #{batchRefNo}
-