Sfoglia il codice sorgente

伴奏曲目可以为空

zouxuan 3 anni fa
parent
commit
d14de126c7

+ 2 - 14
mec-biz/src/main/resources/config/mybatis/SysMusicScoreAccompanimentMapper.xml

@@ -76,16 +76,10 @@
 		<if test="speed != null">
 			speed_ = #{speed},
 		</if>
-		<if test="xmlUrl != null">
-			xml_url_ = #{xmlUrl},
-		</if>
 		<if test="examSongId != null">
 			exam_song_id_ = #{examSongId},
 		</if>
-		<if test="mp3Url != null">
-			mp3_url_ = #{mp3Url},
-		</if>
-		update_time_ = NOW()
+			xml_url_ = #{xmlUrl},mp3_url_ = #{mp3Url}, update_time_ = NOW()
 	</set>WHERE id_ = #{id}
 	</update>
 	<update id="batchDel">
@@ -110,16 +104,10 @@
 				<if test="item.subjectId != null">
 					subject_id_ = #{item.subjectId},
 				</if>
-				<if test="item.xmlUrl != null">
-					xml_url_ = #{item.xmlUrl},
-				</if>
 				<if test="item.examSongId != null">
 					exam_song_id_ = #{item.examSongId},
 				</if>
-				<if test="item.mp3Url != null">
-					mp3_url_ = #{item.mp3Url},
-				</if>
-				update_time_ = NOW()
+				xml_url_ = #{item.xmlUrl},mp3_url_ = #{item.mp3Url}, update_time_ = NOW()
 			</set> WHERE id_ = #{item.id}
 		</foreach>
 	</update>

+ 0 - 4
mec-biz/src/main/resources/config/mybatis/SysMusicScoreMapper.xml

@@ -59,9 +59,7 @@
 		<if test="createUserId != null">
 			create_user_id_ = #{createUserId},
 		</if>
-		<if test="url != null and url != ''">
 			url_ = #{url},
-		</if>
 		<if test="subjectIds != null and subjectIds != ''">
 			subject_ids_ = #{subjectIds},
 		</if>
@@ -74,9 +72,7 @@
 		<if test="speed != null">
 			speed_ = #{speed},
 		</if>
-		<if test="updateTime != null">
 			update_time_ = NOW()
-		</if>
 	</set>
 		WHERE id_ = #{id}
 	</update>