小程序点歌 点歌记录返回状态等字段
This commit is contained in:
parent
37fb8e55c1
commit
e785ee6467
|
|
@ -29,7 +29,7 @@ public interface TbShopSongOrderMapper {
|
|||
int updateByPrimaryKey(TbShopSongOrder record);
|
||||
|
||||
@Select("<script>SELECT\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" +
|
||||
" a.id orderId, b.img, b.name, b.origin_singer originSinger, b.price, a.from_name fromName, a.to_name toName, a.note,a.create_time,a.state\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" +
|
||||
" a.id orderId,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, a.create_time,a.state\n" +
|
||||
" FROM\n" +
|
||||
" tb_shop_song_order AS a\n" +
|
||||
" LEFT JOIN tb_shop_song AS b ON a.song_id = b.id\n" +
|
||||
|
|
@ -64,8 +64,8 @@ public interface TbShopSongOrderMapper {
|
|||
" a.open_id = #{openId} and a.state in (1, 2, 3)")
|
||||
List<Map<String, Object>> selectActiveOrderByUserId(@Param("openId") String openId);
|
||||
|
||||
@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 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 state=2 limit 1")
|
||||
Map<String, Object> selectSinging();
|
||||
|
||||
@Select("select id from tb_shop_song_order where state=1 or state=2 order by create_time asc")
|
||||
List<TbShopSongOrder> selectWaitAll();
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ public class TbShopSongServiceImpl implements TbShopSongService{
|
|||
|
||||
@Override
|
||||
public Object getSinging(String openId) {
|
||||
Map<String, Object> map = shopSongOrderMapper.selectSinging(openId);
|
||||
Map<String, Object> map = shopSongOrderMapper.selectSinging();
|
||||
if (map == null) {
|
||||
return new HashMap<String, Object>(){{
|
||||
put("songName", "");
|
||||
|
|
|
|||
Loading…
Reference in New Issue