@@ -52,7 +52,9 @@
club_temporary
WHERE
userId = #{userId}
- AND (name LIKE CONCAT('%',#{searchName},'%') OR linkMan LIKE CONCAT('%',#{searchName},'%'))
+ <if test="searchName != null and searchName != ''">
+ AND (name LIKE CONCAT('%',#{searchName},'%') OR linkMan LIKE CONCAT('%',#{searchName},'%'))
+ </if>
ORDER BY
id DESC
</select>