小程序点歌 新增获取正在演唱歌曲接口

This commit is contained in:
2024-07-12 14:32:12 +08:00
parent 95c22ee51c
commit 41c264d325
4 changed files with 22 additions and 0 deletions

View File

@@ -63,4 +63,7 @@ public interface TbShopSongOrderMapper {
" WHERE\n" +
" a.open_id = #{openId} and a.state in (1, 2, 3)")
List<Map<String, Object>> selectActiveOrderByUserId(@Param("openId") String openId);
@Select("SELECT song_name, id FROM `tb_shop_song_order` where open_id=#{openId} and state=2 limit 1")
Map<String, Object> selectSinging(@Param("openId") String openId);
}