he2802 3 лет назад
Родитель
Сommit
f79f87e2ae

+ 3 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/goods/bo/GoodsQueryBo.java

@@ -169,4 +169,7 @@ GoodsQueryBo extends BaseEntity {
 	/** 讲师ID */
 	@ApiModelProperty("讲师ID")
 	private Long teacherId;
+	/** 是否返回订单数量 */
+	@ApiModelProperty("是否返回订单数量 1带 0不带")
+	private Long getOrderNum;
 }

+ 2 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/polyv/service/IPolyvLiveService.java

@@ -43,4 +43,6 @@ public interface IPolyvLiveService {
 	List<LiveListChannelViewlogResponse.LiveChannelViewlog> ListChannelViewlog(PolyvLiveQueryBo bo) throws IOException, NoSuchAlgorithmException;
 
 	void GetConsultingRecord(PolyvLiveQueryBo bo) throws IOException, NoSuchAlgorithmException;
+
+	void GetBannedList(PolyvLiveQueryBo bo) throws IOException, NoSuchAlgorithmException;
 }

+ 28 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/polyv/service/impl/PolyvLiveServiceImpl.java

@@ -49,6 +49,7 @@ import net.polyv.live.v1.entity.channel.playback.LiveListChannelSessionInfoReque
 import net.polyv.live.v1.entity.channel.playback.LiveListChannelSessionInfoResponse;
 import net.polyv.live.v1.entity.channel.viewdata.LiveListChannelViewlogRequest;
 import net.polyv.live.v1.entity.channel.viewdata.LiveListChannelViewlogResponse;
+import net.polyv.live.v1.entity.chat.LiveGetBannedListRequest;
 import net.polyv.live.v1.entity.chat.LiveGetConsultingRecordRequest;
 import net.polyv.live.v1.entity.chat.LiveGetConsultingRecordResponse;
 import net.polyv.live.v1.service.channel.impl.LiveChannelOperateServiceImpl;
@@ -262,6 +263,12 @@ public class PolyvLiveServiceImpl implements IPolyvLiveService {
         return null;
     }
 
+    /**
+     * 保利威获取提问列表
+     * @param bo
+     * @throws IOException
+     * @throws NoSuchAlgorithmException
+     */
     @Override
     public void GetConsultingRecord(PolyvLiveQueryBo bo) throws IOException, NoSuchAlgorithmException {
         LiveGetConsultingRecordRequest liveGetConsultingRecordRequest = new LiveGetConsultingRecordRequest();
@@ -284,4 +291,25 @@ public class PolyvLiveServiceImpl implements IPolyvLiveService {
             throw e;
         }
     }
+
+    @Override
+    public void GetBannedList(PolyvLiveQueryBo bo) throws IOException, NoSuchAlgorithmException {
+        LiveGetBannedListRequest liveGetBannedListRequest = new LiveGetBannedListRequest();
+        List<String> liveGetBannedListResponseList = null;
+        try {
+            liveGetBannedListRequest.setChannelId(bo.getChannelId())
+                    .setType(LiveConstant.BannedType.IP.getType());
+            liveGetBannedListResponseList = new LiveChatRoomServiceImpl().getBannedList(liveGetBannedListRequest);
+            if (liveGetBannedListResponseList != null) {
+                //to do something ......
+
+            }
+        } catch (PloyvSdkException e) {
+            //参数校验不合格 或者 请求服务器端500错误,错误信息见PloyvSdkException.getMessage()
+            // 异常返回做B端异常的业务逻辑,记录log 或者 上报到ETL 或者回滚事务
+            throw e;
+        } catch (Exception e) {
+            throw e;
+        }
+    }
 }