Browse Source

bug fixes

plf 4 years ago
parent
commit
79ebf5761b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/main/resources/mapper/SellerMapper.xml

+ 3 - 1
src/main/resources/mapper/SellerMapper.xml

@@ -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>