第三次课程提交 声音系统的管理和提交(ture)

This commit is contained in:
Y1NanPing 2025-07-21 21:06:34 +08:00
parent 6034ffa8c5
commit bd01733db6
7 changed files with 4 additions and 3 deletions

View File

@ -6,10 +6,11 @@ import com.atguigu.tingshu.vo.album.TrackListVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface TrackInfoMapper extends BaseMapper<TrackInfo> {
Page<TrackListVo> findUserTrackPage(Page<TrackListVo> pageInfo, TrackInfoQuery trackInfoQuery);
Page<TrackListVo> findUserTrackPage(Page<TrackListVo> pageInfo,@Param("vo")TrackInfoQuery trackInfoQuery);
}

View File

@ -14,7 +14,7 @@
max(if(stat_type = '0702', stat_num, 0)) collectStatNum,
max(if(stat_type = '0703', stat_num, 0)) praiseStatNum,
max(if(stat_type = '0704', stat_num, 0)) commentStatNum
from track_info ti inner join track_stat stat
from track_info ti inner join track_stat stat
on stat.track_id = ti.id and stat.is_deleted = 0
<where>
<if test="vo.userId != null">
@ -24,7 +24,7 @@
and status = #{vo.status}
</if>
<if test="vo.trackTitle != null and vo.trackTitle != ''">
and track_title like concat('%',#{vo.trackTitle},'%')
and track_title like concat('%', #{vo.trackTitle}, '%')
</if>
and ti.is_deleted = 0
</where>