소스 검색

工作台

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>