Explorar el Código

fix: 模版配置查询status=0时数据过滤失败问题修复

chenjianhua hace 7 meses
padre
commit
ac10d67542

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

@@ -65,7 +65,7 @@
         <if test="templateName != null and templateName != ''">
             and t.name like concat('%',#{templateName},'%')
         </if>
-        <if test="status != null and status !=''">
+        <if test="status != null">
             and mapping.status=#{status}
         </if>
         limit #{offset},#{pageSize}
@@ -87,7 +87,7 @@
         <if test="templateName != null and templateName != ''">
             and t.name like concat('%',#{templateName},'%')
         </if>
-        <if test="status != null and status !=''">
+        <if test="status != null">
             and mapping.status=#{status}
         </if>
     </select>