shopCinfig会员价字段同步
This commit is contained in:
parent
7996129a7c
commit
cb1cb88347
|
|
@ -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);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue