瀏覽代碼

修改映射文件

wushengzong 6 年之前
父節點
當前提交
1ab46e9fa7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/persagy/dao/RoomMapper.xml

+ 1 - 1
src/main/java/com/persagy/dao/RoomMapper.xml

@@ -12,7 +12,7 @@
     </select>
 
     <insert id="add" parameterType="com.persagy.domain.Room">
-        INSERT INTO room VALUES(null,#{name},#{message})
+        INSERT INTO room(id, name, message) VALUES(null,#{name},#{message})
     </insert>
 
     <select id="findById" parameterType="int" resultType="com.persagy.domain.Room">