Commit 3fc8b6e90848e11949cf4a55b1f6510ee34568f8

Authored by landong2015
1 parent 01a81e991b
Exists in master

修改反馈feedback映射文件

Showing 1 changed file with 8 additions and 2 deletions

mainData/src/main/resources/mainOrm/YmFeedbacks.xml View file @ 3fc8b6e
... ... @@ -15,8 +15,14 @@
15 15  
16 16  
17 17  
18   -<insert id="addYmFeedBacks" parameterType="com.lymsh.yimiao.main.data.model.YmFeedBacks">
19   -insert into ym_feedbacks (id,content,type,reply_id,created,yn,publish_id,publish_name) values (#{id},#{content},#{type},#{replyId},#{created},#{yn},#{publishId},#{publishName})
  18 +<insert id="addYmFeedBacks" keyProperty="id" useGeneratedKeys="false" parameterType="com.lymsh.yimiao.main.data.model.YmFeedBacks">
  19 + <selectKey resultType="int" keyProperty="id" order="BEFORE">
  20 + SELECT FEEDBACK_SEQ.nextval AS id
  21 + FROM dual
  22 + </selectKey>
  23 +insert into ym_feedbacks (id,content,type,reply_id,created,yn,publish_id,publish_name)
  24 +values (#{id,jdbcType=INTEGER},#{content,jdbcType=VARCHAR},#{type,jdbcType=INTEGER},#{replyId,jdbcType=INTEGER}
  25 +,#{created,jdbcType=TIMESTAMP},#{yn,jdbcType=INTEGER},#{publishId,jdbcType=INTEGER},#{publishName,jdbcType=VARCHAR})
20 26 </insert>
21 27  
22 28