|
@@ -116,7 +116,7 @@ public class CorpKfServiceImpl implements CorpKfService {
|
|
|
List<CorpKfAccountFollow> dutyList = Optional.ofNullable(dutyReq.getDutyList()).orElse(new ArrayList<>());
|
|
List<CorpKfAccountFollow> dutyList = Optional.ofNullable(dutyReq.getDutyList()).orElse(new ArrayList<>());
|
|
|
//非单个 删除其他设置
|
|
//非单个 删除其他设置
|
|
|
if (!dutyReq.getIsUpdateSingle()) {
|
|
if (!dutyReq.getIsUpdateSingle()) {
|
|
|
- List<CorpKfAccountFollow> exists = dutyList.stream().filter(c -> c.getId() != null).collect(Collectors.toList());
|
|
|
|
|
|
|
+ List<Long> exists = dutyList.stream().filter(c -> c.getId() != null).map(CorpKfAccountFollow::getId).collect(Collectors.toList());
|
|
|
corpKfAccountFollowMapper.delete(Wrappers.lambdaQuery(CorpKfAccountFollow.class)
|
|
corpKfAccountFollowMapper.delete(Wrappers.lambdaQuery(CorpKfAccountFollow.class)
|
|
|
.eq(CorpKfAccountFollow::getOpenKfId, openKfId)
|
|
.eq(CorpKfAccountFollow::getOpenKfId, openKfId)
|
|
|
.notIn(!exists.isEmpty(), CorpKfAccountFollow::getId, exists));
|
|
.notIn(!exists.isEmpty(), CorpKfAccountFollow::getId, exists));
|