分店配置同步

This commit is contained in:
张松
2025-11-07 15:54:58 +08:00
parent 5370dfae0c
commit 57d4f3c8bd

View File

@@ -73,19 +73,17 @@ public class ShopConfigServiceImpl extends ServiceImpl<ShopConfigMapper, ShopCon
if (isEnable == 0 && !onyUpValid) {
List<Long> finalShopIdList = shopIdList;
updateChain().or(or -> {
or.eq(ShopConfig::getId, mainShopId);
}).or(or -> {
or.in(ShopConfig::getId, finalShopIdList);
or.in(ShopConfig::getId, childShopIdList);
}).set(property, 0).update();
}else {
if ("all".equals(useShopType)) {
List<Long> finalShopIdList1 = shopIdList;
updateChain().or(or -> {
or.eq(ShopConfig::getId, mainShopId);
}).or(or -> {
or.in(ShopConfig::getId, finalShopIdList1);
or.in(ShopConfig::getId, childShopIdList);
}).set(property, 1).update();
}else {
if (shopIdList.isEmpty()) {