直播添加相关功能bug修改

This commit is contained in:
xuwenbo
2020-08-11 11:49:19 +08:00
parent 834b6128eb
commit 156d08ecfb
3 changed files with 9 additions and 8 deletions

View File

@ -7,6 +7,7 @@
* 一经发现盗用、分享等行为,将追究法律责任,后果自负 * 一经发现盗用、分享等行为,将追究法律责任,后果自负
*/ */
package co.yixiang.modules.wechat.domain; package co.yixiang.modules.wechat.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data; import lombok.Data;
@ -26,7 +27,7 @@ import java.util.Date;
public class YxWechatLive implements Serializable { public class YxWechatLive implements Serializable {
/** 直播间id */ /** 直播间id */
@TableId @TableId(type = IdType.INPUT)
private Long roomid; private Long roomid;

View File

@ -23,16 +23,16 @@ public class YxWechatLiveDto implements Serializable {
/** 直播间id */ /** 直播间id */
/** 防止精度丢失 */ /** 防止精度丢失 */
@JsonSerialize(using= ToStringSerializer.class) @JsonSerialize(using= ToStringSerializer.class)
private Long roomId; private Long roomid;
/** 直播间标题 */ /** 直播间标题 */
private String name; private String name;
/** 背景图 */ /** 背景图 */
private String coverImg; private String coverImge;
/** 分享图片 */ /** 分享图片 */
private String shareImg; private String shareImge;
/** 直播间状态 */ /** 直播间状态 */
private Integer liveStatus; private Integer liveStatus;
@ -50,7 +50,7 @@ public class YxWechatLiveDto implements Serializable {
private String anchorWechat; private String anchorWechat;
/** 主播头像 */ /** 主播头像 */
private String anchorImg; private String anchorImge;
/** 直播间类型 1推流 0手机直播 */ /** 直播间类型 1推流 0手机直播 */
private Integer type; private Integer type;

View File

@ -110,14 +110,14 @@ public class YxWechatLiveServiceImpl extends BaseServiceImpl<YxWechatLiveMapper,
for (YxWechatLiveDto yxWechatLive : all) { for (YxWechatLiveDto yxWechatLive : all) {
Map<String,Object> map = new LinkedHashMap<>(); Map<String,Object> map = new LinkedHashMap<>();
map.put("直播间标题", yxWechatLive.getName()); map.put("直播间标题", yxWechatLive.getName());
map.put("背景图", yxWechatLive.getCoverImg()); map.put("背景图", yxWechatLive.getCoverImge());
map.put("分享图片", yxWechatLive.getShareImg()); map.put("分享图片", yxWechatLive.getShareImge());
map.put("直播间状态", yxWechatLive.getLiveStatus()); map.put("直播间状态", yxWechatLive.getLiveStatus());
map.put("开始时间", yxWechatLive.getStartTime()); map.put("开始时间", yxWechatLive.getStartTime());
map.put("预计结束时间", yxWechatLive.getEndTime()); map.put("预计结束时间", yxWechatLive.getEndTime());
map.put("主播昵称", yxWechatLive.getAnchorName()); map.put("主播昵称", yxWechatLive.getAnchorName());
map.put("主播微信号", yxWechatLive.getAnchorWechat()); map.put("主播微信号", yxWechatLive.getAnchorWechat());
map.put("主播头像", yxWechatLive.getAnchorImg()); map.put("主播头像", yxWechatLive.getAnchorImge());
map.put("直播间类型 1推流 0手机直播", yxWechatLive.getType()); map.put("直播间类型 1推流 0手机直播", yxWechatLive.getType());
map.put("横屏、竖屏 【1横屏0竖屏】", yxWechatLive.getScreenType()); map.put("横屏、竖屏 【1横屏0竖屏】", yxWechatLive.getScreenType());
map.put("是否关闭货架 【0开启1关闭】", yxWechatLive.getCloseLike()); map.put("是否关闭货架 【0开启1关闭】", yxWechatLive.getCloseLike());