后台服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
950 B

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.iformall.mapper.MusicInfoServiceMapper">
  4. <select id="findList" resultType="com.iformall.domain.po.sm.MusicInfo">
  5. SELECT id, update_date, size, name, time, is_del, url, create_date, user_id, type
  6. FROM music_info
  7. WHERE is_del = 0 and type = #{type} and user_id = 0
  8. ORDER BY create_date DESC
  9. </select>
  10. <select id="userMusic" resultType="com.iformall.domain.po.sm.MusicInfo">
  11. SELECT id, update_date, size, name, time, is_del, url, create_date, user_id, type
  12. FROM music_info
  13. WHERE is_del = 0 and type = #{type} and user_id = #{userId}
  14. ORDER BY create_date DESC
  15. </select>
  16. <update id="deleteById">
  17. update music_info set is_del = 1,update_date = now() where id = #{id}
  18. </update>
  19. </mapper>