diff --git a/sgzb-modules/sgzb-base/src/main/resources/mapper/base/MaLabelBindMapper.xml b/sgzb-modules/sgzb-base/src/main/resources/mapper/base/MaLabelBindMapper.xml
index 6176acfc..e521c2b1 100644
--- a/sgzb-modules/sgzb-base/src/main/resources/mapper/base/MaLabelBindMapper.xml
+++ b/sgzb-modules/sgzb-base/src/main/resources/mapper/base/MaLabelBindMapper.xml
@@ -84,16 +84,18 @@
LEFT JOIN ma_machine ma ON ma.ma_id = a.ma_id
LEFT JOIN sys_user user on user.user_id =a.binder
WHERE mt.`level` = '4' AND mt.`del_flag` = '0'
-
+
+ and (b.label_code like concat('%', #{keyWord}, '%') or
+ ma.ma_code like concat('%', #{keyWord}, '%'))
+ and a.label_code = #{labelCode}
- and a.type_id = #{typeId}
+ and mt2.type_id = #{typeId} and a.bind_time = #{bindTime} and a.binder = #{binder} and a.label_type = #{labelType} and a.company_id = #{companyId}
- and mt2.type_id= #{modelId}
+ and mt.type_id= #{modelId} and mt3.type_name = #{wpName}
-