vip_贵族礼物&贵族表情不做编辑
This commit is contained in:
@@ -225,6 +225,10 @@ public class VipAdminService {
|
||||
}
|
||||
|
||||
for (Byte authType : authMap.keySet()) {
|
||||
//贵族表情,贵族礼物不是这里编辑的不操作增删改操作
|
||||
if (NOT_NEED_EDIT_AUTH_ITEM_LIST.contains(authType)) {
|
||||
continue;
|
||||
}
|
||||
Boolean needAddAuth = false;
|
||||
Boolean needDelAuth = false;
|
||||
if (CollectionUtils.isNotEmpty(refAuthForDel) && refAuthForDel.contains(authType)) {
|
||||
@@ -257,18 +261,16 @@ public class VipAdminService {
|
||||
}
|
||||
} else {
|
||||
// 需要更新的权益物品
|
||||
if (!NOT_NEED_EDIT_AUTH_ITEM_LIST.contains(authType)) {
|
||||
List<String> itemsInDB = listByVipLevelAndType(level, authType);
|
||||
List<String> itemForAdd = new ArrayList<>(inputItemValues);
|
||||
List<String> itemForDel = new ArrayList<>(itemsInDB);
|
||||
itemForAdd.removeAll(itemsInDB);
|
||||
itemForDel.removeAll(inputItemValues);
|
||||
if (CollectionUtils.isNotEmpty(itemForAdd)) {
|
||||
batchAddAuthItems(level, authType, itemForAdd);
|
||||
}
|
||||
if (CollectionUtils.isNotEmpty(itemForDel)) {
|
||||
batchDelAuthItems(level, authType, itemForDel);
|
||||
}
|
||||
List<String> itemsInDB = listByVipLevelAndType(level, authType);
|
||||
List<String> itemForAdd = new ArrayList<>(inputItemValues);
|
||||
List<String> itemForDel = new ArrayList<>(itemsInDB);
|
||||
itemForAdd.removeAll(itemsInDB);
|
||||
itemForDel.removeAll(inputItemValues);
|
||||
if (CollectionUtils.isNotEmpty(itemForAdd)) {
|
||||
batchAddAuthItems(level, authType, itemForAdd);
|
||||
}
|
||||
if (CollectionUtils.isNotEmpty(itemForDel)) {
|
||||
batchDelAuthItems(level, authType, itemForDel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user