Kaynağa Gözat

网络教室优化

zouxuan 3 yıl önce
ebeveyn
işleme
99603c46d6

+ 3 - 3
mec-biz/src/main/resources/config/mybatis/RoomMapper.xml

@@ -60,13 +60,13 @@
 		UPDATE rongyun_room
 		<set>
 			<if test="display">
-				display = #{display}
+				AND display = #{display}
 			</if>
 			<if test="soundVolume">
-				sound_volume = #{soundVolume}
+				AND sound_volume = #{soundVolume}
 			</if>
 			<if test="whiteboardNameIndex">
-				whiteboard_name_index = #{whiteboardNameIndex}
+				AND whiteboard_name_index = #{whiteboardNameIndex}
 			</if>
 		</set>
 		WHERE rid = #{roomId}

+ 6 - 9
mec-biz/src/main/resources/config/mybatis/WhiteboardMapper.xml

@@ -52,9 +52,6 @@
 		<if test="createDt != null">
 		create_dt = #{createDt},
 		</if>
-		<if test="id != null">
-		id = #{id},
-		</if>
 		<if test="rid != null">
 		rid = #{rid},
 		</if>
@@ -78,13 +75,13 @@
 		DELETE FROM rongyun_whiteboard
 		<where>
 			<if test="roomId != null">
-				rid = #{roomId},
+				AND rid = #{roomId}
 			</if>
 			<if test="wbid != null">
-				wbid = #{wbid},
+				AND wbid = #{wbid}
 			</if>
 			<if test="creator != null">
-				creator = #{creator},
+				AND creator = #{creator}
 			</if>
 		</where>
 	</delete>
@@ -97,13 +94,13 @@
 		SELECT * FROM rongyun_whiteboard
 		<where>
 			<if test="roomId != null">
-				rid = #{roomId},
+				AND rid = #{roomId}
 			</if>
 			<if test="wbid != null">
-				wbid = #{wbid},
+				AND wbid = #{wbid}
 			</if>
 			<if test="creator != null">
-				creator = #{creator},
+				AND creator = #{creator}
 			</if>
 		</where>
 	</select>