小程序点歌 新增待演唱统计数字段
This commit is contained in:
@@ -29,7 +29,7 @@ public interface TbShopSongOrderMapper {
|
||||
int updateByPrimaryKey(TbShopSongOrder record);
|
||||
|
||||
@Select("<script>SELECT\n" +
|
||||
" b.img, b.name, b.origin_singer originSinger, b.price, a.from_name fromName, a.to_name toName, a.note\n" +
|
||||
" a.id orderId, b.img, b.name, b.origin_singer originSinger, b.price, a.from_name fromName, a.to_name toName, a.note\n" +
|
||||
" FROM\n" +
|
||||
" tb_shop_song_order AS a\n" +
|
||||
" LEFT JOIN tb_shop_song AS b ON a.song_id = b.id\n" +
|
||||
@@ -56,7 +56,7 @@ public interface TbShopSongOrderMapper {
|
||||
int deleteExpireOrder();
|
||||
|
||||
@Select("SELECT\n" +
|
||||
" b.img, b.name, b.origin_singer originSinger, b.price, a.from_name fromName, a.to_name toName, a.note\n" +
|
||||
" a.id orderId,b.img, b.name, b.origin_singer originSinger, b.price, a.from_name fromName, a.to_name toName, a.note\n" +
|
||||
" FROM\n" +
|
||||
" tb_shop_song_order AS a\n" +
|
||||
" LEFT JOIN tb_shop_song AS b ON a.song_id = b.id\n" +
|
||||
@@ -66,4 +66,7 @@ public interface TbShopSongOrderMapper {
|
||||
|
||||
@Select("SELECT a.song_name songName, a.id, b.img FROM `tb_shop_song_order` as a left join tb_shop_song as b on a.song_id=b.id where open_id=#{openId} and state=2 limit 1")
|
||||
Map<String, Object> selectSinging(@Param("openId") String openId);
|
||||
|
||||
@Select("select id from tb_shop_song_order where state=1 or state=2 order by create_time asc")
|
||||
List<TbShopSongOrder> selectWaitAll();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user