Commit 3e064c90 authored by liucx's avatar liucx

优化更新

parent 9fd1f93c
......@@ -264,7 +264,8 @@ public class SmartAccountProductRelationServiceImpl extends ServiceImpl<SmartAcc
@Override
public void updateBatchById(List<SmartAccountProductRelation> productRelations) {
updateBatchById(productRelations);
saveOrUpdateBatch(productRelations);
}
}
......@@ -91,8 +91,9 @@ public class StockPriceTask implements ApplicationRunner {
if(!ObjectUtils.isEmpty(productRelation) && !ObjectUtils.isEmpty(productRelation.getId())){
list.add(productRelation);
}
accountProductRelationService.updateBatchById(list);
}
accountProductRelationService.updateBatchById(list);
return " ";
}, executorServicePersonal).handle((result, ex) -> {
if (null != ex) {
......@@ -154,7 +155,6 @@ public class StockPriceTask implements ApplicationRunner {
//私人定制
public AccountProductRelation AccountProductRelationTask(AccountProductRelation accountProductRelation) {
AccountProductRelation productRelation = new AccountProductRelation();
try {
String type = SIMULATED.getCode();
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