|
@@ -37,13 +37,13 @@
|
|
<select id="queryByEmail" resultType="com.simuwang.base.pojo.dos.EmailTemplateInfoDO">
|
|
<select id="queryByEmail" resultType="com.simuwang.base.pojo.dos.EmailTemplateInfoDO">
|
|
select t1.template_id as id,
|
|
select t1.template_id as id,
|
|
t2.direction as direction,
|
|
t2.direction as direction,
|
|
- t2.type as type,
|
|
|
|
|
|
+ t2."TYPE" as type,
|
|
t2.start_index as startIndex,
|
|
t2.start_index as startIndex,
|
|
t2.end_index as endIndex
|
|
t2.end_index as endIndex
|
|
from email_template_mapping t1
|
|
from email_template_mapping t1
|
|
join email_template_info t2 on t2.id = t1.template_id and t2.isvalid = 1 and t2.status = 1
|
|
join email_template_info t2 on t2.id = t1.template_id and t2.isvalid = 1 and t2.status = 1
|
|
where t1.email = #{email}
|
|
where t1.email = #{email}
|
|
- and t2.type = #{type}
|
|
|
|
|
|
+ and t2."TYPE" = #{type}
|
|
and t1.isvalid = 1
|
|
and t1.isvalid = 1
|
|
and t1.status = 1
|
|
and t1.status = 1
|
|
</select>
|
|
</select>
|