zoujiajian 1 yıl önce
ebeveyn
işleme
f025bae9e2

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

@@ -120,7 +120,7 @@ public class CorpKfServiceImpl implements CorpKfService {
 			List<CorpKfAccountFollow> exists = dutyList.stream().filter(c -> c.getId() != null).collect(Collectors.toList());
 			corpKfAccountFollowMapper.delete(Wrappers.lambdaQuery(CorpKfAccountFollow.class)
 					.eq(CorpKfAccountFollow::getOpenKfId, openKfId)
-					.notIn(CorpKfAccountFollow::getId, exists));
+					.notIn(!exists.isEmpty(), CorpKfAccountFollow::getId, exists));
 		}
 
 		dutyList.forEach(duty -> {

+ 1 - 1
netflix-web/src/main/java/com/cyksj/web/controller/manage/corp/wxkf/CorpKfController.java

@@ -168,7 +168,7 @@ public class CorpKfController {
 		if (!rootRole) {
 			List<String> userids = corpFollowMapper.selectList(Wrappers.lambdaQuery(CorpFollow.class)
 					.eq(CorpFollow::getCmsUserId, adminId)).stream().map(CorpFollow::getUserid).collect(Collectors.toList());
-			builder.field(CorpKfServicerStatistic::getServicerUserId, userids).op(Operator.InList);
+			builder.field(CorpKfServicerStatistic::getServicerUserid, userids).op(Operator.InList);
 		}
 		SearchResult<CorpKfServicerStatistic> search = beanSearcher.search(CorpKfServicerStatistic.class, builder.build());
 		return GatewayResponse.SUCCESS.newBuilder().toResult(search);