소스 검색

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

chenjianhua 7 달 전
부모
커밋
ac10d67542
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      service-base/src/main/resources/mapper/EmailTemplateMappingMapper.xml

+ 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>