Browse Source

feat: 基金管理展示兼容gauss,修改模版保存失败

chenjianhua 6 months ago
parent
commit
f7a06709e8

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

@@ -29,7 +29,7 @@
         </foreach>
     </update>
     <update id="updateTemplateInfo">
-        update email_template_info set name=#{name},type=#{type},direction=#{direction},description=#{description},status=#{status},updatetime=#{updateTime},updaterid=#{updaterId}
+        update email_template_info set name=#{name},"TYPE"=#{type},direction=#{direction},description=#{description},status=#{status},updatetime=#{updateTime},updaterid=#{updaterId}
         where id=#{id} and isvalid=1
     </update>
     <select id="searchTemplateList" resultMap="BaseResultMap">

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

@@ -37,13 +37,13 @@
     <select id="queryByEmail" resultType="com.simuwang.base.pojo.dos.EmailTemplateInfoDO">
         select t1.template_id as id,
                t2.direction as direction,
-               t2.type as type,
+               t2."TYPE" as type,
                t2.start_index as startIndex,
                t2.end_index as endIndex
         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>