소스 검색

fix:修复queryByEmail方法的sql语法错误问题

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

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

@@ -43,7 +43,7 @@
         from email_template_mapping t1
             join email_template_info t2 on t2.id = t1.template_id and t2.isvalid = 1 and t2.status = 1
         where t1.email = #{email}
-          and t2."TYPE" = #{type}
+          and t2.type = #{type}
           and t1.isvalid = 1
           and t1.status = 1
     </select>