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