Commit 1ec4e5ac authored by unset's avatar unset

影像图库新增批量上下架以及删除接口

parent af7d161c
...@@ -361,8 +361,9 @@ public class ShoppingCartInfoBiz extends BaseBiz<ShoppingCartInfoMapper, Shoppin ...@@ -361,8 +361,9 @@ 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) {
shoppingCartInfoList.parallelStream().forEach(shoppingCartInfo -> {
if (status != null) { if (status != null) {
shoppingCartInfo.setStatus(status); shoppingCartInfo.setStatus(status);
} }
...@@ -370,6 +371,7 @@ public class ShoppingCartInfoBiz extends BaseBiz<ShoppingCartInfoMapper, Shoppin ...@@ -370,6 +371,7 @@ public class ShoppingCartInfoBiz extends BaseBiz<ShoppingCartInfoMapper, Shoppin
shoppingCartInfo.setIsDel(1); 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