|
@@ -65,6 +65,10 @@ public class GhDetailServiceImpl implements GhDetailService {
|
|
|
ghDetailVo.setCreateTime(DateUtils.getDateString(ghDetail.getCreateTime().getTime(), "yyyy-MM-dd HH:mm:ss"));
|
|
|
ghDetailVo.setUpdateTime(DateUtils.getDateString(ghDetail.getUpdateTime().getTime(), "yyyy-MM-dd HH:mm:ss"));
|
|
|
ghDetailVo.setChannel(ghDetail.getChannel());
|
|
|
+ if (StringUtils.isNotEmpty(ghDetail.getVideoIds())) {
|
|
|
+ List<Long> videoIds = JSONObject.parseArray(ghDetail.getVideoIds(), Long.class);
|
|
|
+ ghDetailVo.setVideoIds(videoIds);
|
|
|
+ }
|
|
|
ghDetailVos.add(ghDetailVo);
|
|
|
}
|
|
|
}
|
|
@@ -89,6 +93,9 @@ public class GhDetailServiceImpl implements GhDetailService {
|
|
|
BeanUtils.copyProperties(ghDetailVo, ghDetail);
|
|
|
ghDetail.setGhId(ghDetailVo.getAccountId());
|
|
|
ghDetail.setGhName(ghDetailVo.getAccountName());
|
|
|
+ if (!CollectionUtils.isEmpty(ghDetailVo.getVideoIds())) {
|
|
|
+ ghDetail.setVideoIds(JSONObject.toJSONString(ghDetailVo.getVideoIds()));
|
|
|
+ }
|
|
|
ghDetailMapper.insert(ghDetail);
|
|
|
return CommonResponse.success();
|
|
|
} catch (Exception e) {
|
|
@@ -105,6 +112,9 @@ public class GhDetailServiceImpl implements GhDetailService {
|
|
|
BeanUtils.copyProperties(ghDetailVo, ghDetail);
|
|
|
ghDetail.setGhId(ghDetailVo.getAccountId());
|
|
|
ghDetail.setGhName(ghDetailVo.getAccountName());
|
|
|
+ if (!CollectionUtils.isEmpty(ghDetailVo.getVideoIds())) {
|
|
|
+ ghDetail.setVideoIds(JSONObject.toJSONString(ghDetailVo.getVideoIds()));
|
|
|
+ }
|
|
|
ghDetailMapper.updateByPrimaryKeySelective(ghDetail);
|
|
|
return CommonResponse.success();
|
|
|
} catch (Exception e) {
|