|
@@ -1,11 +1,13 @@
|
|
|
package com.fdkankan.ucenter.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.fdkankan.ucenter.entity.ScenePlusExt;
|
|
|
import com.fdkankan.ucenter.mapper.IScenePlusExtMapper;
|
|
|
import com.fdkankan.ucenter.service.IScenePlusExtService;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
@@ -60,4 +62,17 @@ public class ScenePlusExtServiceImpl extends ServiceImpl<IScenePlusExtMapper, Sc
|
|
|
wrapper.eq(ScenePlusExt::getIsObj,1);
|
|
|
return this.list(wrapper);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void removeByPlusIds(List<Long> plusIds) {
|
|
|
+ if(CollectionUtils.isEmpty(plusIds)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ LambdaUpdateWrapper<ScenePlusExt> wrapper = new LambdaUpdateWrapper<>();
|
|
|
+ wrapper.set(ScenePlusExt::getRecStatus,"I");
|
|
|
+ wrapper.in(ScenePlusExt::getPlusId,plusIds);
|
|
|
+ this.update(wrapper);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|