|
@@ -112,12 +112,15 @@ public class GhDetailServiceImpl implements GhDetailService {
|
|
|
if (!CollectionUtils.isEmpty(ghDetailVo.getVideoIds())) {
|
|
|
ghDetail.setVideoIds(JSONObject.toJSONString(ghDetailVo.getVideoIds()));
|
|
|
}
|
|
|
+ if (StringUtils.isEmpty(ghDetail.getContentDetail())) {
|
|
|
+ ghDetail.setContentDetail(null);
|
|
|
+ }
|
|
|
ghDetailMapper.insertSelective(ghDetail);
|
|
|
return CommonResponse.success();
|
|
|
} catch (Exception e) {
|
|
|
log.error("addGhDetail error", e);
|
|
|
}
|
|
|
- return CommonResponse.create(500, "插入失败,可能已经存在该记录");
|
|
|
+ return CommonResponse.create(500, "插入失败");
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -138,6 +141,9 @@ public class GhDetailServiceImpl implements GhDetailService {
|
|
|
if (StringUtils.isNotEmpty(ghDetailVo.getAccountName())) {
|
|
|
ghDetail.setGhName(ghDetailVo.getAccountName());
|
|
|
}
|
|
|
+ if (StringUtils.isEmpty(ghDetail.getContentDetail())) {
|
|
|
+ ghDetail.setContentDetail(null);
|
|
|
+ }
|
|
|
ghDetail.setGhId(ghDetailVo.getAccountId());
|
|
|
ghDetail.setGhName(ghDetailVo.getAccountName());
|
|
|
ghDetail.setVideoIds(JSONObject.toJSONString(ghDetailVo.getVideoIds()));
|