Merge remote-tracking branch 'origin/wvp-28181-2.0' into wvp-28181-2.0
|  |  |  | 
|---|
|  |  |  | boolean contains = allAppAndStream.contains(app + stream); | 
|---|
|  |  |  | //ä¸åå¨å°±æ·»å | 
|---|
|  |  |  | if (!contains) { | 
|---|
|  |  |  | streamPushItem.setStatus(false); | 
|---|
|  |  |  | streamPushItem.setStreamType("push"); | 
|---|
|  |  |  | streamPushItem.setCreateTime(DateUtil.getNow()); | 
|---|
|  |  |  | streamPushItem.setMediaServerId(mediaServerService.getDefaultMediaServer().getId()); | 
|---|
|  |  |  | 
|---|
|  |  |  | streamPushItem.setApp(streamPushExcelDto.getApp()); | 
|---|
|  |  |  | streamPushItem.setStream(streamPushExcelDto.getStream()); | 
|---|
|  |  |  | streamPushItem.setGbId(streamPushExcelDto.getGbId()); | 
|---|
|  |  |  | streamPushItem.setStatus(false); | 
|---|
|  |  |  | streamPushItem.setStatus(streamPushExcelDto.getStatus()); | 
|---|
|  |  |  | streamPushItem.setStreamType("push"); | 
|---|
|  |  |  | streamPushItem.setCreateTime(DateUtil.getNow()); | 
|---|
|  |  |  | streamPushItem.setMediaServerId(defaultMediaServerId); | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Insert("<script> " + | 
|---|
|  |  |  | "INSERT into platform_gb_stream " + | 
|---|
|  |  |  | "(gbStreamId, platformId, catalogId) " + | 
|---|
|  |  |  | "(gbStreamId, platformId, catalogId,status) " + | 
|---|
|  |  |  | "values " + | 
|---|
|  |  |  | "<foreach collection='streamPushItems' index='index' item='item' separator=','> " + | 
|---|
|  |  |  | "(${item.gbStreamId}, '${item.platformId}', '${item.catalogId}')" + | 
|---|
|  |  |  | "(${item.gbStreamId}, '${item.platformId}', '${item.catalogId}'), '${item.status}')" + | 
|---|
|  |  |  | "</foreach> " + | 
|---|
|  |  |  | "</script>") | 
|---|
|  |  |  | int batchAdd(List<StreamPushItem> streamPushItems); | 
|---|
|  |  |  | 
|---|
|  |  |  | @ExcelProperty("ç®å½ID") | 
|---|
|  |  |  | private String catalogId; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ExcelProperty("å¨çº¿ç¶æ") | 
|---|
|  |  |  | private boolean status; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getName() { | 
|---|
|  |  |  | return name; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | public void setCatalogId(String catalogId) { | 
|---|
|  |  |  | this.catalogId = catalogId; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public boolean isStatus() { | 
|---|
|  |  |  | return status; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public boolean getStatus() { | 
|---|
|  |  |  | return status; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setStatus(boolean status) { | 
|---|
|  |  |  | this.status = status; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|