Explorar o código

fix: 模版信息模糊查询名称

chenjianhua hai 7 meses
pai
achega
4e8c4b5ff8

+ 2 - 2
service-base/src/main/resources/mapper/EmailTemplateInfoMapper.xml

@@ -36,7 +36,7 @@
         select id,name,type,direction,start_index,end_index,description,status,isvalid,creatorid,createtime,updaterid,updatetime
         from PPW_EMAIL.email_template_info where isvalid=1
         <if test="name != null and name !=''">
-            and name =#{name}
+            and name like concat('%',#{name},'%')
         </if>
         <if test="type != null">
             and type =#{type}
@@ -51,7 +51,7 @@
         select count(1)
         from PPW_EMAIL.email_template_info where isvalid=1
         <if test="name != null and name !=''">
-            and name =#{name}
+            and name like concat('%',#{name},'%')
         </if>
         <if test="type != null">
             and type =#{type}