@@ -266,6 +266,10 @@
<if test="status != null">
AND g.status_ = #{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
</if>
+ <if test="search != null and search != ''">
+ AND (g.id_ = #{search} OR g.name_ LIKE CONCAT('%',#{search},'%')
+ OR g.sn_ LIKE CONCAT('%',#{search},'%') OR brand_ LIKE CONCAT('%',#{search},'%'))
+ </if>
</where>
</sql>