Browse Source

更新mapperXml

jelly 3 years ago
parent
commit
6aab66342d

+ 1 - 0
.gitignore

@@ -22,6 +22,7 @@ mvnw.cmd
 *.iml
 *.ipr
 /toolset/codegen/src/main/resources/generateConfigration.xml
+/cooleshow-user/user-admin/src/main/resources/bootstrap-dev.yml
 
 ### 忽略子模块的文件 ###
 **/*.ims

+ 1 - 1
cooleshow-user/user-biz/src/main/resources/config/mybatis/AlbumFavoriteMapper.xml

@@ -70,7 +70,7 @@
 		 where id_ = #{id}
 	</update>
 
-	<select id="findAll" resultMap="com.yonge.cooleshow.biz.dal.entity.AlbumFavorite">
+	<select id="findAll" resultMap="BaseResultMap">
         SELECT * FROM album_favorite
         ORDER BY id_ desc
     </select>

+ 1 - 1
cooleshow-user/user-biz/src/main/resources/config/mybatis/AlbumMusicRelateMapper.xml

@@ -77,7 +77,7 @@
 		 where id_ = #{id}
 	</update>
 
-	<select id="findAll" resultMap="com.yonge.cooleshow.biz.dal.entity.AlbumMusicRelate">
+	<select id="findAll" resultMap="BaseResultMap">
         SELECT * FROM album_music_relate
         ORDER BY id_ desc
     </select>

+ 1 - 1
cooleshow-user/user-biz/src/main/resources/config/mybatis/MusicAlbumMapper.xml

@@ -126,7 +126,7 @@
 		 where id_ = #{id}
 	</update>
 
-	<select id="findAll" resultMap="com.yonge.cooleshow.biz.dal.entity.MusicAlbum">
+	<select id="findAll" resultMap="BaseResultMap">
         SELECT * FROM music_album
         ORDER BY id_ desc
     </select>

+ 1 - 1
cooleshow-user/user-biz/src/main/resources/config/mybatis/MusicFavoriteMapper.xml

@@ -70,7 +70,7 @@
 		 where id_ = #{id}
 	</update>
 
-	<select id="findAll" resultMap="com.yonge.cooleshow.biz.dal.entity.MusicFavorite">
+	<select id="findAll" resultMap="BaseResultMap">
         SELECT * FROM music_favorite
         ORDER BY id_ desc
     </select>

+ 1 - 1
cooleshow-user/user-biz/src/main/resources/config/mybatis/MusicSheetAccompanimentMapper.xml

@@ -84,7 +84,7 @@
 		 where id_ = #{id}
 	</update>
 
-	<select id="findAll" resultMap="com.yonge.cooleshow.biz.dal.entity.MusicSheetAccompaniment">
+	<select id="findAll" resultMap="BaseResultMap">
         SELECT * FROM music_sheet_accompaniment
         ORDER BY id_ desc
     </select>

+ 1 - 16
cooleshow-user/user-biz/src/main/resources/config/mybatis/MusicSheetMapper.xml

@@ -203,7 +203,7 @@
 		 where id_ = #{id}
 	</update>
 
-	<select id="findAll" resultMap="com.yonge.cooleshow.biz.dal.entity.MusicSheet">
+	<select id="findAll" resultMap="BaseResultMap">
         SELECT * FROM music_sheet
         ORDER BY id_ desc
     </select>
@@ -284,19 +284,4 @@
                     </if>
 	</select>
 
-    <!-- 模糊查询分页 -->
-    <select id="selectPage" resultMap="BaseResultMap" parameterType="com.yonge.cooleshow.biz.dal.entity.MusicSheet">
-        SELECT
-        <include refid="baseColumns" />
-        FROM music_sheet t
-        where 1=1
-        <if test="search != null and search != ''">
-        t.`id_` LIKE CONCAT('%', #{search},'%')
-        OR t.`music_sheet_name_` LIKE CONCAT('%', #{search},'%')
-        OR t.`composer_` LIKE CONCAT('%', #{search},'%')
-        OR t.`music_tag_` LIKE CONCAT('%', #{search},'%')
-        OR t.`music_subject_` LIKE CONCAT('%', #{search},'%')
-        </if>
-    </select>
-
 </mapper>

+ 1 - 1
cooleshow-user/user-biz/src/main/resources/config/mybatis/MusicSheetPurchaseRecordMapper.xml

@@ -91,7 +91,7 @@
 		 where id_ = #{id}
 	</update>
 
-	<select id="findAll" resultMap="com.yonge.cooleshow.biz.dal.entity.MusicSheetPurchaseRecord">
+	<select id="findAll" resultMap="BaseResultMap">
         SELECT * FROM music_sheet_purchase_record
         ORDER BY id_ desc
     </select>

+ 1 - 1
cooleshow-user/user-biz/src/main/resources/config/mybatis/VideoLessonEvaluateMapper.xml

@@ -70,7 +70,7 @@
 		 where id_ = #{id}
 	</update>
 
-	<select id="findAll" resultMap="com.yonge.cooleshow.biz.dal.entity.VideoLessonEvaluate">
+	<select id="findAll" resultMap="BaseResultMap">
         SELECT * FROM video_lesson_evaluate
         ORDER BY id_ desc
     </select>

+ 1 - 1
cooleshow-user/user-biz/src/main/resources/config/mybatis/VideoLessonGroupDetailMapper.xml

@@ -119,7 +119,7 @@
 		 where id_ = #{id}
 	</update>
 
-	<select id="findAll" resultMap="com.yonge.cooleshow.biz.dal.entity.VideoLessonGroupDetail">
+	<select id="findAll" resultMap="BaseResultMap">
         SELECT * FROM video_lesson_group_detail
         ORDER BY id_ desc
     </select>

+ 1 - 1
cooleshow-user/user-biz/src/main/resources/config/mybatis/VideoLessonGroupMapper.xml

@@ -140,7 +140,7 @@
 		 where id_ = #{id}
 	</update>
 
-	<select id="findAll" resultMap="com.yonge.cooleshow.biz.dal.entity.VideoLessonGroup">
+	<select id="findAll" resultMap="BaseResultMap">
         SELECT * FROM video_lesson_group
         ORDER BY id_ desc
     </select>

+ 1 - 1
cooleshow-user/user-biz/src/main/resources/config/mybatis/VideoLessonPurchaseRecordMapper.xml

@@ -84,7 +84,7 @@
 		 where id_ = #{id}
 	</update>
 
-	<select id="findAll" resultMap="com.yonge.cooleshow.biz.dal.entity.VideoLessonPurchaseRecord">
+	<select id="findAll" resultMap="BaseResultMap">
         SELECT * FROM video_lesson_purchase_record
         ORDER BY id_ desc
     </select>

+ 1 - 1
cooleshow-user/user-biz/src/main/resources/config/mybatis/VideoLessonStudyRecordMapper.xml

@@ -84,7 +84,7 @@
 		 where id_ = #{id}
 	</update>
 
-	<select id="findAll" resultMap="com.yonge.cooleshow.biz.dal.entity.VideoLessonStudyRecord">
+	<select id="findAll" resultMap="BaseResultMap">
         SELECT * FROM video_lesson_study_record
         ORDER BY id_ desc
     </select>