Explorar el Código

修改映射文件

wushengzong hace 6 años
padre
commit
1ab46e9fa7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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">