超级会员修改
This commit is contained in:
@@ -249,10 +249,11 @@ public class TbMemberConfigServiceImpl extends ServiceImpl<TbMemberConfigMapper,
|
||||
}
|
||||
AssertUtil.isTrue(!levelConfigService.updateById(levelConfig, false), "修改失败");
|
||||
|
||||
if (!Objects.equals(oldVal, levelDTO.getExperienceValue())) {
|
||||
List<ShopUser> shopUserList = shopUserService.list(new QueryWrapper().eq(ShopUser::getSourceShopId, shopId));
|
||||
Long mainShopid = shopInfoService.getMainIdByShopId(shopId);
|
||||
if (!levelDTO.getExperienceValue().equals(oldVal)) {
|
||||
List<ShopUser> shopUserList = shopUserService.list(new QueryWrapper().eq(ShopUser::getMainShopId, mainShopid));
|
||||
shopUserList.forEach(item -> {
|
||||
MemberLevelConfig configServiceOne = levelConfigService.getOne(new QueryWrapper().eq(MemberLevelConfig::getShopId, shopId)
|
||||
MemberLevelConfig configServiceOne = levelConfigService.getOne(new QueryWrapper().eq(MemberLevelConfig::getShopId, mainShopid)
|
||||
.le(MemberLevelConfig::getExperienceValue, item.getExperience()).orderBy(MemberLevelConfig::getExperienceValue, false).limit(1));
|
||||
item.setMemberLevelId(configServiceOne == null ? item.getMemberLevelId() : configServiceOne.getId());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user