diff --git a/backend-java/src/main/resources/mapper/jd/JdProductMapper.xml b/backend-java/src/main/resources/mapper/jd/JdProductMapper.xml index 2d0f6c6b5..c4a43ac22 100644 --- a/backend-java/src/main/resources/mapper/jd/JdProductMapper.xml +++ b/backend-java/src/main/resources/mapper/jd/JdProductMapper.xml @@ -74,7 +74,14 @@ WHERE company_id = #{companyId} AND task_id = #{taskId} AND manual_locked = 0 - AND (item_num IS NULL OR item_num = '' OR item_num != CONVERT(id, CHAR)) + + AND (item_num IS NULL OR item_num = '' OR BINARY item_num != BINARY CONVERT(id, CHAR))