zoujiajian před 1 rokem
rodič
revize
0931c21d6d

+ 1 - 1
netflix-service/src/main/java/com/cyksj/service/corp/kf/impl/CorpKfServiceImpl.java

@@ -116,7 +116,7 @@ public class CorpKfServiceImpl implements CorpKfService {
 		List<CorpKfAccountFollow> dutyList = Optional.ofNullable(dutyReq.getDutyList()).orElse(new ArrayList<>());
 		//非单个 删除其他设置
 		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)
 					.eq(CorpKfAccountFollow::getOpenKfId, openKfId)
 					.notIn(!exists.isEmpty(), CorpKfAccountFollow::getId, exists));