|
@@ -48,6 +48,9 @@ public class UserPlatformServiceImpl extends ServiceImpl<IUserPlatformMapper, Us
|
|
|
}
|
|
|
|
|
|
private void delByPlatformIds(Integer userId,List<Integer> delIds) {
|
|
|
+ if(!delIds.isEmpty()){
|
|
|
+ return;
|
|
|
+ }
|
|
|
LambdaQueryWrapper<UserPlatform> wrapper = new LambdaQueryWrapper<>();
|
|
|
wrapper.eq(UserPlatform::getUserId,userId);
|
|
|
wrapper.in(UserPlatform::getPlatformId,delIds);
|
|
@@ -55,6 +58,9 @@ public class UserPlatformServiceImpl extends ServiceImpl<IUserPlatformMapper, Us
|
|
|
}
|
|
|
|
|
|
private void saveByPlatformIds(Integer userId,List<Integer> addIds) {
|
|
|
+ if(!addIds.isEmpty()){
|
|
|
+ return;
|
|
|
+ }
|
|
|
for (Integer addId : addIds) {
|
|
|
Platform platform = platformService.getById(addId);
|
|
|
if(platform != null){
|