diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/codeCollection/WsMaInfoMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/codeCollection/WsMaInfoMapper.xml
index 0e176313..59663eed 100644
--- a/bonus-modules/bonus-material/src/main/resources/mapper/material/codeCollection/WsMaInfoMapper.xml
+++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/codeCollection/WsMaInfoMapper.xml
@@ -89,10 +89,8 @@
ws_ma_info
- and ma_code like concat('%', #{maCode}, '%')
-
-
- and qr_code = #{qrCode}
+ and (ma_code like concat('%', #{maCode}, '%')
+ or qr_code = #{maCode})
LIMIT 10
@@ -115,10 +113,8 @@
LEFT JOIN ma_type mt1 ON mt1.type_id = mt.parent_id
- and mm.ma_code like concat('%', #{maCode}, '%')
-
-
- and qr_code = #{qrCode}
+ and (mm.ma_code like concat('%', #{maCode}, '%')
+ or mm.qr_code = #{maCode})
LIMIT 10