ソースを参照

Merge branch 'dev-xym-fix' of Server/growth-manager into master

xueyiming 3 ヶ月 前
コミット
9a2d4bd4fb

+ 7 - 1
api-module/src/main/java/com/tzld/piaoquan/api/service/impl/GhDetailServiceImpl.java

@@ -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()));