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