shopCinfig会员价字段同步

This commit is contained in:
张松 2025-10-31 13:46:30 +08:00
parent 7996129a7c
commit cb1cb88347
1 changed files with 7 additions and 0 deletions

View File

@ -69,6 +69,8 @@ public class TbMemberConfigServiceImpl extends ServiceImpl<TbMemberConfigMapper,
private MkShopCouponRecordService shopCouponRecordService; private MkShopCouponRecordService shopCouponRecordService;
@DubboReference @DubboReference
private ShopInfoService shopInfoService; private ShopInfoService shopInfoService;
@DubboReference
private ShopConfigService shopConfigService;
@Override @Override
public MemberConfigVO detail(Long shopId) { public MemberConfigVO detail(Long shopId) {
@ -189,6 +191,11 @@ public class TbMemberConfigServiceImpl extends ServiceImpl<TbMemberConfigMapper,
if (memberDTO.getMemberPriceShopIdList() != null && !memberDTO.getMemberPriceShopIdList().isEmpty()) { if (memberDTO.getMemberPriceShopIdList() != null && !memberDTO.getMemberPriceShopIdList().isEmpty()) {
memberConfig.setMemberPriceShopIdList(JSONObject.toJSONString(memberDTO.getMemberPriceShopIdList())); memberConfig.setMemberPriceShopIdList(JSONObject.toJSONString(memberDTO.getMemberPriceShopIdList()));
} }
shopConfigService.editStatusByShopIdList(memberConfig.getShopId(), memberConfig.getIsOpen().intValue(),false, "is_account_ay",
"ALL".equals(memberConfig.getMemberPriceShopType()) ? "all" : "part",
StrUtil.isNotBlank(memberConfig.getMemberPriceShopIdList()) ? JSONArray.parseArray(memberConfig.getMemberPriceShopIdList()).toList(Long.class) : new ArrayList<>());
return updateById(memberConfig, false); return updateById(memberConfig, false);