Переглянути джерело

定向包关系绑定sql优化

zhaoxian 4 роки тому
батько
коміт
b8ed3c11c6

+ 1 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/ai/service/impl/KuaishouDirectionalPackageServiceImpl.java

@@ -635,7 +635,7 @@ public class KuaishouDirectionalPackageServiceImpl extends ServiceImpl<KuaishouD
             relEntity.setExcludePopulation(request.getString("excludePopulation"));
             relEntity.setPopulation(request.getString("population"));
             relEntity.setPaidAudience(request.getString("paidAudience"));
-            relService.save(relEntity);
+            relMapper.replace(relEntity);
         } catch (Exception e) {
             log.error("添加广告组和定向模板绑定关系异常", e);
         }