Commit f0524923 authored by 周健威's avatar 周健威

Merge remote-tracking branch 'origin/dev' into dev

parents ae91bf4f 2251ca86
...@@ -361,15 +361,17 @@ public class ShoppingCartInfoBiz extends BaseBiz<ShoppingCartInfoMapper, Shoppin ...@@ -361,15 +361,17 @@ public class ShoppingCartInfoBiz extends BaseBiz<ShoppingCartInfoMapper, Shoppin
Example example = new Example(ShoppingCartInfo.class); Example example = new Example(ShoppingCartInfo.class);
example.createCriteria().andEqualTo("detailId", detailId) example.createCriteria().andEqualTo("detailId", detailId)
.andEqualTo("status", 1).andEqualTo("isDel", 0); .andEqualTo("status", 1).andEqualTo("isDel", 0);
ShoppingCartInfo shoppingCartInfo = mapper.selectOneByExample(example); List<ShoppingCartInfo> shoppingCartInfoList = mapper.selectByExample(example);
if (shoppingCartInfo != null) { if (shoppingCartInfoList != null && shoppingCartInfoList.size() > 0) {
if (status != null) { shoppingCartInfoList.parallelStream().forEach(shoppingCartInfo -> {
shoppingCartInfo.setStatus(status); if (status != null) {
} shoppingCartInfo.setStatus(status);
if (isDel != null) { }
shoppingCartInfo.setIsDel(1); if (isDel != null) {
} shoppingCartInfo.setIsDel(1);
updateSelectiveByIdRe(shoppingCartInfo); }
updateSelectiveByIdRe(shoppingCartInfo);
});
} }
} }
......
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