|
@@ -338,6 +338,12 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
}
|
|
|
}
|
|
|
for (GzhPlanVideoContentItemParam vo : param.getVideoList()) {
|
|
|
+ if (!StringUtils.hasText(vo.getCustomTitle())) {
|
|
|
+ vo.setCustomTitle(null);
|
|
|
+ }
|
|
|
+ if (!StringUtils.hasText(vo.getCustomCover())) {
|
|
|
+ vo.setCustomCover(null);
|
|
|
+ }
|
|
|
if (existsVideoIds.contains(vo.getVideoId())) {
|
|
|
ContentPlatformGzhPlanVideo item = existsVideoMap.get(vo.getVideoId());
|
|
|
item.setTitle(vo.getTitle());
|
|
@@ -365,7 +371,7 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
}
|
|
|
item.setCreateAccountId(loginAccount.getId());
|
|
|
item.setCreateTimestamp(System.currentTimeMillis());
|
|
|
- gzhPlanVideoMapper.insertSelective(item);
|
|
|
+ gzhPlanVideoMapper.insert(item);
|
|
|
}
|
|
|
}
|
|
|
if (CollectionUtils.isNotEmpty(param.getVideoList())) {
|