|
@@ -90,9 +90,14 @@ public class GhDetailServiceImpl implements GhDetailService {
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
- ghDetailVo.setAccountId(ghDetailVo.getAccountId().trim());
|
|
|
GhDetail ghDetail = new GhDetail();
|
|
|
BeanUtils.copyProperties(ghDetailVo, ghDetail);
|
|
|
+ if (StringUtils.isNotEmpty(ghDetailVo.getAccountId())) {
|
|
|
+ ghDetail.setGhId(ghDetailVo.getAccountId().trim());
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(ghDetailVo.getAccountName())) {
|
|
|
+ ghDetail.setGhName(ghDetailVo.getAccountName());
|
|
|
+ }
|
|
|
ghDetail.setGhId(ghDetailVo.getAccountId());
|
|
|
ghDetail.setGhName(ghDetailVo.getAccountName());
|
|
|
if (!CollectionUtils.isEmpty(ghDetailVo.getVideoIds())) {
|
|
@@ -109,9 +114,14 @@ public class GhDetailServiceImpl implements GhDetailService {
|
|
|
@Override
|
|
|
public CommonResponse<Void> updateDetail(GhDetailVo ghDetailVo) {
|
|
|
try {
|
|
|
- ghDetailVo.setAccountId(ghDetailVo.getAccountId().trim());
|
|
|
GhDetail ghDetail = new GhDetail();
|
|
|
BeanUtils.copyProperties(ghDetailVo, ghDetail);
|
|
|
+ if (StringUtils.isNotEmpty(ghDetailVo.getAccountId())) {
|
|
|
+ ghDetail.setGhId(ghDetailVo.getAccountId().trim());
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(ghDetailVo.getAccountName())) {
|
|
|
+ ghDetail.setGhName(ghDetailVo.getAccountName());
|
|
|
+ }
|
|
|
ghDetail.setGhId(ghDetailVo.getAccountId());
|
|
|
ghDetail.setGhName(ghDetailVo.getAccountName());
|
|
|
if (!CollectionUtils.isEmpty(ghDetailVo.getVideoIds())) {
|