소스 검색

修改映射文件

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">