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
Example example = new Example(ShoppingCartInfo.class);
example.createCriteria().andEqualTo("detailId", detailId)
.andEqualTo("status", 1).andEqualTo("isDel", 0);
ShoppingCartInfo shoppingCartInfo = mapper.selectOneByExample(example);
if (shoppingCartInfo != null) {
if (status != null) {
shoppingCartInfo.setStatus(status);
}
if (isDel != null) {
shoppingCartInfo.setIsDel(1);
}
updateSelectiveByIdRe(shoppingCartInfo);
List<ShoppingCartInfo> shoppingCartInfoList = mapper.selectByExample(example);
if (shoppingCartInfoList != null && shoppingCartInfoList.size() > 0) {
shoppingCartInfoList.parallelStream().forEach(shoppingCartInfo -> {
if (status != null) {
shoppingCartInfo.setStatus(status);
}
if (isDel != null) {
shoppingCartInfo.setIsDel(1);
}
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