Commit 3e064c90 authored by liucx's avatar liucx

优化更新

parent 9fd1f93c
...@@ -264,7 +264,8 @@ public class SmartAccountProductRelationServiceImpl extends ServiceImpl<SmartAcc ...@@ -264,7 +264,8 @@ public class SmartAccountProductRelationServiceImpl extends ServiceImpl<SmartAcc
@Override @Override
public void updateBatchById(List<SmartAccountProductRelation> productRelations) { public void updateBatchById(List<SmartAccountProductRelation> productRelations) {
updateBatchById(productRelations); saveOrUpdateBatch(productRelations);
} }
} }
...@@ -91,8 +91,9 @@ public class StockPriceTask implements ApplicationRunner { ...@@ -91,8 +91,9 @@ public class StockPriceTask implements ApplicationRunner {
if(!ObjectUtils.isEmpty(productRelation) && !ObjectUtils.isEmpty(productRelation.getId())){ if(!ObjectUtils.isEmpty(productRelation) && !ObjectUtils.isEmpty(productRelation.getId())){
list.add(productRelation); list.add(productRelation);
} }
accountProductRelationService.updateBatchById(list);
} }
accountProductRelationService.updateBatchById(list);
return " "; return " ";
}, executorServicePersonal).handle((result, ex) -> { }, executorServicePersonal).handle((result, ex) -> {
if (null != ex) { if (null != ex) {
...@@ -154,7 +155,6 @@ public class StockPriceTask implements ApplicationRunner { ...@@ -154,7 +155,6 @@ public class StockPriceTask implements ApplicationRunner {
//私人定制 //私人定制
public AccountProductRelation AccountProductRelationTask(AccountProductRelation accountProductRelation) { public AccountProductRelation AccountProductRelationTask(AccountProductRelation accountProductRelation) {
AccountProductRelation productRelation = new AccountProductRelation(); AccountProductRelation productRelation = new AccountProductRelation();
try { try {
String type = SIMULATED.getCode(); String type = SIMULATED.getCode();
OptionalUtil.checkNull(accountProductRelation, "当前用户产品关系不存在"); OptionalUtil.checkNull(accountProductRelation, "当前用户产品关系不存在");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment