Browse Source

【ICSS】模板支持模板名字模糊搜索

gaodm 5 years ago
parent
commit
12177605cb

+ 2 - 0
icss-service/src/main/java/com/diagbot/vo/TemplateInfoPageVO.java

@@ -41,4 +41,6 @@ public class TemplateInfoPageVO extends Page{
 	private String type;//模板类型
 	
 	private List<Integer> sex;//性别
+
+	private String name;//模板名字
 }

+ 3 - 0
icss-service/src/main/resources/mapper/TemplateInfoMapper.xml

@@ -89,6 +89,9 @@
 		<if test="type != null and type != ''">
 			and type = #{type}
 		</if>
+		<if test="name != null and name != ''">
+			and name like concat('%',#{name},'%')
+		</if>
 		and sex in
 		<foreach collection="sex" item="sexNew" open="(" close=")"
 			separator=",">