zhoulii commented on code in PR #2582:
URL: 
https://github.com/apache/incubator-streampark/pull/2582#discussion_r1160779276


##########
streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/impl/FlinkClusterServiceImpl.java:
##########
@@ -323,6 +323,13 @@ public Boolean existsByClusterName(String clusterName, 
Long id) {
     return this.baseMapper.existsByClusterName(clusterName, id);
   }
 
+  @Override
+  public Boolean existsByFlinkEnvId(Long flinkEnvId) {
+    LambdaQueryWrapper<FlinkCluster> lambdaQueryWrapper =
+        new LambdaQueryWrapper<FlinkCluster>().eq(FlinkCluster::getVersionId, 
flinkEnvId);
+    return this.count(lambdaQueryWrapper) > 0;

Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to