Pārlūkot izejas kodu

1.修改模板无法新增代码问题

jzp 1 nedēļu atpakaļ
vecāks
revīzija
67fac0133d

+ 5 - 5
fs-service/src/main/resources/mapper/sop/QwSopTempContentMapper.xml

@@ -7,21 +7,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     <resultMap type="QwSopTempContent" id="QwSopTempContentResult">
         <result property="id"    column="id"    />
         <result property="rulesId"    column="rules_id"    />
-        <result property="sendType"    column="send_type"    />
+        <result property="contentType"    column="content_type"    />
         <result property="content"    column="content"    />
         <result property="isBindUrl"    column="is_bind_url"    />
         <result property="expiresDays"    column="expires_days"    />
     </resultMap>
 
     <sql id="selectQwSopTempContentVo">
-        select id, rules_id, send_type, content, is_bind_url, expires_days from qw_sop_temp_content
+        select id, rules_id, content_type, content, is_bind_url, expires_days from qw_sop_temp_content
     </sql>
 
     <select id="selectQwSopTempContentList" parameterType="QwSopTempContent" resultMap="QwSopTempContentResult">
         <include refid="selectQwSopTempContentVo"/>
         <where>
             <if test="rulesId != null  and rulesId != ''"> and rules_id = #{rulesId}</if>
-            <if test="sendType != null "> and send_type = #{sendType}</if>
+            <if test="contentType != null "> and content_type = #{contentType}</if>
             <if test="content != null  and content != ''"> and content = #{content}</if>
             <if test="isBindUrl != null "> and is_bind_url = #{isBindUrl}</if>
             <if test="expiresDays != null  and expiresDays != ''"> and expires_days = #{expiresDays}</if>
@@ -56,7 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <trim prefix="(" suffix=")" suffixOverrides=",">
             <if test="id != null">id,</if>
             <if test="rulesId != null">rules_id,</if>
-            <if test="sendType != null">send_type,</if>
+            <if test="contentType != null">content_type,</if>
             <if test="content != null">content,</if>
             <if test="isBindUrl != null">is_bind_url,</if>
             <if test="expiresDays != null">expires_days,</if>
@@ -64,7 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="id != null">#{id},</if>
             <if test="rulesId != null">#{rulesId},</if>
-            <if test="sendType != null">#{sendType},</if>
+            <if test="contentType != null">#{contentType},</if>
             <if test="content != null">#{content},</if>
             <if test="isBindUrl != null">#{isBindUrl},</if>
             <if test="expiresDays != null">#{expiresDays},</if>