瀏覽代碼

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

mozuwen 5 月之前
父節點
當前提交
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>