第三次课程提交 声音系统的管理和提交(ture)
This commit is contained in:
parent
6034ffa8c5
commit
bd01733db6
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue