guarantee-lsq пре 9 месеци
родитељ
комит
2ea2765d8e
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      platform-dao/src/main/resources/mapper/custom/CustomFormMapper.xml

+ 5 - 1
platform-dao/src/main/resources/mapper/custom/CustomFormMapper.xml

@@ -61,6 +61,10 @@
 
     <select id="selectIndexList" parameterType="com.platform.dao.dto.custom.CustomFormDTO" resultType="com.platform.dao.vo.query.custom.CustomFormVO">
         select form.id,form.name
-        from t_custom_form as form where status = 1 limit 30
+        from t_custom_form as form where status = 1
+        <if test="name != null and name != ''">
+            and name like concat(concat('%',#{name}),'%')
+        </if>
+        limit 30
     </select>
 </mapper>